Lakaroth

Veteran
Veteran
Joined
Dec 9, 2014
Messages
281
Reaction score
137
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,812
Reaction score
896
First Language
German
Primarily Uses
RMMZ
$gameScreen.startZoom(x, y, scale, duration);
 

Lakaroth

Veteran
Veteran
Joined
Dec 9, 2014
Messages
281
Reaction score
137
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,812
Reaction score
896
First Language
German
Primarily Uses
RMMZ
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.
 

Latest Threads

Latest Posts

Latest Profile Posts

Sorry Kitty...I'm practicing my harmonics. RIP your ears.
I noticed they now have a Gremlins cartoon. Nothing like striking when the iron is hot then trying to make a reboot from a movie made 34 years ago.
Up to 40,000,000 people just became felons by bureaucratic decree today in the US. If you own certain configurations of plastic and velcro, best make sure you aren't risking 10 years behind bars. Just had to take back my mom's mothers day gift from three years ago. Fun times, thanks unelected bureaucrats.
Someone help me, how to Failed to load img/system/Window%20%20%E5%89%AF%E6%9C%AC%20(2) .png in joiplay emulator on android
Someone please post some beginner problems so I can act like I'm a veteran and know what I'm doing? (Also someone please stop @Andar and @ATT_Turan from posting on them because they are way too fast?!)

Forum statistics

Threads
131,579
Messages
1,221,221
Members
173,278
Latest member
colossus0
Top