LET cameraX = xpos(player) - 500LET cameraY = ypos(player) - 300MOVESPRITE object, x - cameraX, y - cameraY
IF cameraX > 500 THEN cameraX = 500