camera

The camera is the view in a room.

Constant Value
real CAMX camera_get_view_x(view_camera[0])
real CAMY camera_get_view_y(view_camera[0])
real CAMW camera_get_view_width(view_camera[0])
real CAMH camera_get_view_height(view_camera[0])

Example

// Draw event
draw_sprite(spr_player_idle, 0, CAMX + CAMW / 2, CAMY + CAMH / 2);
This will show spr_player_idle at the center of the camera.