Place obj_camera2d in a room and set its target in the inspector. It follows with smoothing, look-ahead and drag margins, stays inside the room (or its limits), zooms smoothly and can take part of the window (split screen: port_x/y/w/h).
- Shake:
camera_shake(0.4)adds trauma (0 to 1) that fades; the shake is trauma squared, made of smooth noise, moving and turning the view. Presets:camera_shake_preset("hit" | "explosion" | "earthquake" | "rumble").camera_kick(dx, dy, pixels)pushes the view one way (recoil). - Players' choice:
camera_shake_setting(0 … 1)scales or turns off every shake,camera_shake_rumble(true)also rumbles the pads; both are saved with the controls. - Game feel:
hitstop(seconds)freezes the game,slow_motion(scale, seconds)slows it.
Related topics
Keys are shown as on the Mac: ⌘ Command, ⌥ Option, ⌃ Control, ⇧ Shift. Studio for Windows shows its own keys beside each menu item.