Skip to content
SecreTPT edited this page Jul 6, 2018 · 2 revisions

Game.CamMove(float x, float y, float x1, float y1, float speed, bool tweenMode)

The camera is defined by its view-port (x,y) -> (x1,y1). The speed is the amount of pixels per second the camera will move. If tweenMode is true then the Camera will continue moving to the new view-port. If set to false then the Camera will move for the duration of a following Game.Pause(int Seconds) command or until it reaches its destination, whichever comes first. A cameras view-port can only be modified if the game is paused.

(Setting tweenMode to true automatically pauses the game)

Clone this wiki locally