Page 1 of 1

Camera Zoom controls

Posted: Wed Jul 14, 2021 4:27 pm
by LunarCatUSA
Let’s say I have some suspenseful scene in a game, and I want the camera to gradually zoom in on a spot on the screen. (In this case, a background object with given screen coordinates) I know I’m supposed to use the handycam controls in Lua, but I’m not familiar with how it all works.

Re: Camera Zoom controls

Posted: Thu Jul 15, 2021 8:09 am
by Hoeloe
You can literally just load handycam and set handycam[1].zoom, to set the player 1 camera's zoom level. A value of 1 is default, anything larger than 1 will zoom in.

Re: Camera Zoom controls

Posted: Thu Jul 15, 2021 3:46 pm
by LunarCatUSA
Thanks!