Simple Zoom IN/OUT plugin

Lakaroth

Veteran
Veteran
Joined
Dec 9, 2014
Messages
274
Reaction score
132
First Language
English
Primarily Uses
I'm not a programmer, but i find out a little function in another topic.

Sets the game zoom factor (called once on scene load):$gameScreen.setZoom((SceneManager._screenWidth)/2,(SceneManager._screenHeight)/2,2.5);With this you can zoom in game, but the zoom is immediate without transition.

Anyone can made a small plugin who can Zoom IN/OUT with this features?

  • Zoom in/out (maybe with various speed for the transition)
  • Center Player on the screen
  • Set zoom region XY cooridnates
This is my idea for the definitive zoom plugin.

Best
Lakaroth
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
$gameScreen.startZoom(x, y, scale, duration);
 

Lakaroth

Veteran
Veteran
Joined
Dec 9, 2014
Messages
274
Reaction score
132
First Language
English
Primarily Uses
$gameScreen.startZoom(x, y, scale, duration);
Thank you so much!

PS: There's a way to use varaibles?

For example to store PC or PNC position.
 
Last edited by a moderator:

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
863
First Language
German
Primarily Uses
For centering on the player, try this:

Code:
$gameScreen.startZoom($gamePlayer.screenX(), $gamePlayer.screenY() - 24, scale, duration);
Note that this doesn't seem to work at all when the player is moving around.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,845
Messages
1,016,961
Members
137,561
Latest member
JaCrispy85
Top