Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Help with incorporating a zoom function

Sean Aram

Villager
Xy$
0.00
Hello!

I'm struggling with trying to add a zoom function to my game. Specifically, I'd like the camera to zoom in slightly when entering a new map, like a building, and then zoom back out when returning to the town map.

I want the camera to behave as normal when in a building: still following the player, just with a closer view.

How can I go about doing this? I've experimented with a few plugins, but to no avail.


thanks!
 

Sean Aram

Villager
Xy$
0.00
also, just to be clear, I'm not looking for any kind of transitional effects.
 

Indsh

Villager
Xy$
0.00
Do you still need help with this?

$gameScreen.setZoom(x, y, scale);
 

Harmless

Towns Guard
Oh boy, I've been looking for a zoom function for a while and it was that easy! Thanks XD
 
Top