Camera Zoom controls

Post here for help and support regarding LunaLua and SMBX2's libraries and features.

Moderator: Userbase Moderators

LunarCatUSA
Monty Mole
Monty Mole
Posts: 115
Joined: Sat Mar 06, 2021 9:56 am
Flair: Soda-Butler

Camera Zoom controls

Postby LunarCatUSA » Wed Jul 14, 2021 4:27 pm

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.

Hoeloe
Phanto
Phanto
Posts: 1465
Joined: Sat Oct 03, 2015 6:18 pm
Flair: The Codehaus Girl
Pronouns: she/her

Re: Camera Zoom controls

Postby Hoeloe » Thu Jul 15, 2021 8:09 am

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.

LunarCatUSA
Monty Mole
Monty Mole
Posts: 115
Joined: Sat Mar 06, 2021 9:56 am
Flair: Soda-Butler

Re: Camera Zoom controls

Postby LunarCatUSA » Thu Jul 15, 2021 3:46 pm

Thanks!


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 3 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari