Studio › Manual › Rooms

Editing rooms

Drag instances around the room and change them with the mouse; every change is written to the room .yy exactly as GameMaker writes it, and each drag is one step in Edit > Undo (⌘Z), named after what it did ("Undo Move obj_soldier"). While a drag is under way nothing is written; Esc puts everything back.

  • Move: drag a selected instance (all selected instances move together). A dashed line from where it started shows the distance, and a tag the new position.
  • Scale: drag one of the eight handles; the opposite side stays where it is. Shift keeps the proportions. The tag shows the size in pixels and the scale.
  • Rotate: drag the round knob above the selection; it turns about the instance's origin. With the grid on it turns in 15° steps.
  • Several at once: with two or more instances (or asset items) selected, a dashed box goes round them all with eight handles and a knob. Drag a handle to scale the whole group from the opposite side (positions spread, each one's scale changes; Shift keeps proportions); drag the knob to turn them all about the middle of the box, each moving round it and turning by the same angle (15° steps with the grid on). Room > Turn Several About Selected Origin (⌃⌥⌘O) turns them about the first-selected instance's origin instead. The Rotate and Scale tools do the same from a drag anywhere. Each is one undo step ("Rotate 3 Instances").
  • Asset layers: sprites (and sequences) placed on asset layers are edited like instances: click to select (the inspector shows the sprite, position, scale, rotation and frame), drag to move, handles and knob to scale and turn, ⌫ to delete. Sequences, which the room view does not draw, show as a 32-pixel box round their origin when selected.
  • Snap to Grid (the magnet over the view, G, Room > Snap to Grid ⇧⌘'): moves, scales and placements land on the room's grid. Hold ⌘ while dragging to skip it for that drag.
  • Tools (V, M, R, S, B; Room > Tool ⌥⌘1-5): Select does everything above with the handles; Move, Rotate and Scale work on the selection from a drag anywhere in the room; Tile Brush paints tiles.
  • Duplicate: ⌥-drag an instance to drag out a copy, or ⌘D (Room > Duplicate) for a copy one grid cell along. Copies get new GameMaker names (inst_ and eight hex digits), keep the scale, rotation, colour and creation code, and go last in the room's instance creation order.
  • Delete (⌫ or Edit > Delete) removes the selection from its layer and the creation order; an instance's creation code file goes to the Trash.
  • Copy and paste (⌘C, ⌘X, ⌘V) work between rooms; a pasted instance lands one grid cell along from where it was, with a new name.

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