Studio › Manual › Code and objects

The object editor

An object's tab lists its events with icons on the left and edits the selected event's code on the right.

  • Add an event with the + menu (⌥⌘E). Studio adds it to the object's .yy exactly as GameMaker would and creates the event's .gml file with GameMaker's starter comment.
  • Remove an event from its right-click menu. Its code file goes to the Trash.
  • Code or blocks: each event is GML code or GML Visual blocks; the switch in the editor header (⇧⌘B) changes it (see GML Visual blocks). The list says Blocks beside events GameMaker opens as blocks.
  • Inherited events from the parent chain are listed greyed below. An event the object also has itself is dimmer: it replaces the parent's (call event_inherited() to run both).
  • The inspector edits the object's sprite, collision mask, parent, and the Visible, Solid and Persistent flags. Changes are written to the .yy straight away.

Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.