YoYo Games Wiki

Object View

From YoYoGames Wiki

This is the screen that pops up whenever (a) a new object is created, or (b) when an existing objects name (on the left sidebar) is double clicked (or right-clicked "Properties"). This screen can be overwhelming to the absolute beginner.


On the left, the first thing you see is the "Name." This is what your program will refer to the object as. A common convention is to add an "obj_" prefix (e.g. "obj_ball"). Next, you see the Sprite information right below the name. To learn about sprites see "Sprite." To choose a sprite, click where the sprite name is or click the drop down button to the right of the name. You can also define a new sprite or edit the objects current sprite with the respective buttons. Below that, you will see two check-boxes. One for "Visible" and one for "Solid." Visible is simple whether or not the sprite is drawn for this object. Collisions and events still happen even when the object is not visible. Solid is a variable used for collision checking primarily and is often used for environment objects (e.g. a bounding rock).


After that, we have the depth. Depth controls when an object is drawn. The higher the depth, the earlier the object is drawn, or the further behind everything else this is drawn. Depth also controls the order in which the step methods are called for objects. If an object is "Persistant" that means that it will stay exactly where it is in the new room when you change rooms.


"Information" shows a text representation of all of the objects code, actions, and events. This is good for printing out and running traces on complex algorithms. The "OK!" button simply save changes to the object and closes this object view. Event Stuff. The buttons are self explanatory but see "Events" or "Creating an Event" for more information Action Stuff. This is where all the actions are for the selected event. You must have an event before you can add actions. see "Actions" for more information.


Action buttons. These are the buttons you use to make the game run. See "Drag and Drop" or "Actions" Action Tabs. (Also known as "Action Libraries") These tabs contain more Action buttons. Click the tab to activate it. The min,max,close buttons act as they do in windows. Note that close does not save changes unless you select yes from the 'save changes dialog.'