puubutt

Villager
Member
Joined
Jun 18, 2017
Messages
27
Reaction score
6
First Language
English
Primarily Uses
RM2k3
Hello~
I was trying to have my game zoomed in throughout the whole run of the game because I feel like the game feels too far away with my pixel art- so I used the plugin that RPG maker itself gives you (Community_Basic) to zoom in. My problem is that the resolution I wanted 448x320 basically cuts off everything outside of that. Textboxes automatically resize to fit, but things like the menu doesn't resize which looks fairly awkward, and when I put in a choice selection, the options are off-screen no matter if I put it to the left, right, or middle.
I know Yanfly's plugin would probably fix this, but right now I can't really afford it, and assumed there was an easier in-game way of doing it.
Any help would be appreciated.
 

KillerGin

Freddie
Veteran
Joined
Dec 18, 2015
Messages
558
Reaction score
510
First Language
English
Primarily Uses
N/A
Are you using MV? If so use the built in zoom commands (you have to use script commands, they are hidden lol)

Examples:

var xPos = $gameMap.event(3).screenX();

var YPos = $gameMap.event(3).screenY();

or

var xPos = $gamePlayer.screenX();

var YPos = $gamePlayer.screenY();

$gameScreen.startZoom(xPos, YPos, 2.2, 120);
(the 2.2 is the zoom amount, less than 1 is zoom out, and the 120 is the time in frames)

and

$gameScreen.clearZoom();
 
Last edited:

puubutt

Villager
Member
Joined
Jun 18, 2017
Messages
27
Reaction score
6
First Language
English
Primarily Uses
RM2k3
Are you using MV? If so use the built in zoom commands (you have to use script commands, they are hidden lol)

Examples:

var xPos = $gameMap.event(3).screenX();

var YPos = $gameMap.event(3).screenY();

or

var xPos = $gamePlayer.screenX();

var YPos = $gamePlayer.screenY();

$gameScreen.startZoom(xPos, YPos, 2.2, 120);

and

$gameScreen.clearZoom();
Ah thank you so much!
I wasn't aware they had a Script function ; ;

Sorry to expand on my question, but when using the game's script for the zoom in, it still cuts off the character near the sides of the maps, so I can't get near the edge of a map without the player walking off screen. Is the only way to fix this just making the edges thicker?
 

KillerGin

Freddie
Veteran
Joined
Dec 18, 2015
Messages
558
Reaction score
510
First Language
English
Primarily Uses
N/A
Ah thank you so much!
I wasn't aware they had a Script function ; ;

Sorry to expand on my question, but when using the game's script for the zoom in, it still cuts off the character near the sides of the maps, so I can't get near the edge of a map without the player walking off screen. Is the only way to fix this just making the edges thicker?

I think you would just have to make the map bigger in the editor, extend them with blank space that way that engine has something to fill the space with.
 

puubutt

Villager
Member
Joined
Jun 18, 2017
Messages
27
Reaction score
6
First Language
English
Primarily Uses
RM2k3
I think you would just have to make the map bigger in the editor, extend them with blank space that way that engine has something to fill the space with.
ah alright, thank you so much for your help!
 

KillerGin

Freddie
Veteran
Joined
Dec 18, 2015
Messages
558
Reaction score
510
First Language
English
Primarily Uses
N/A
No problem, glad to help.

I'm so sorry, I forgot to explain the numbers above (I updated the post for future reference)

$gameScreen.startZoom(xPos, YPos, 2.2, 120);
(the 2.2 is the zoom amount, less than 1 is zoom out, and the 120 is the time in frames)
 

puubutt

Villager
Member
Joined
Jun 18, 2017
Messages
27
Reaction score
6
First Language
English
Primarily Uses
RM2k3
No problem, glad to help.

I'm so sorry, I forgot to explain the numbers above (I updated the post for future reference)

$gameScreen.startZoom(xPos, YPos, 2.2, 120);
(the 2.2 is the zoom amount, less than 1 is zoom out, and the 120 is the time in frames)
Oh thank you for clarifying, I played around with the numbers and figured it out~

Also I found a plugin that zooms in and fixes the edging problem.
(MBS_MapZoom by Masked)
incase anyone was following this thread for an answer~
 

KillerGin

Freddie
Veteran
Joined
Dec 18, 2015
Messages
558
Reaction score
510
First Language
English
Primarily Uses
N/A
Oh thank you for clarifying, I played around with the numbers and figured it out~

Also I found a plugin that zooms in and fixes the edging problem.
(MBS_MapZoom by Masked)
incase anyone was following this thread for an answer~

I used to use that one..... but I had issues with it..... I forgot what it was, but it made something harder/didnt work well. It may have been a compatibility issue with another script or game mechanic I created.

So I just went back to zooming manually using the built in script functions.

However, if it works well for you, then go for it.

If you just add more space to maps, I think you wont have the edging issue.
 
Last edited:

Latest Threads

Latest Profile Posts

One thing those jp developer still get wrong about boob physic is that... men's muscly hard pecs can jiggle too.
Definitely glad I haven't released a few of my plugins that are technically done. As I learn more, I find ways to make my code more efficient, and in one case so far, discovered an existing function that did EXACTLY what I created my own function to do.
So I was kinda recommended a manga to learn a few drawing tips, I dunno if it will actually work, but I'm liking the story lol
M745veO.jpg
RPG Maker News #12 | Control Zooming, Customize Bush Effect, Causality & Happy Bones on Steam
Episode 16 let's go! We're making an RPG in RPG Maker MZ! This week... even more mapping, we're almost done with all the mapping for our first dungeon!

Forum statistics

Threads
110,448
Messages
1,053,400
Members
143,533
Latest member
shininblade
Top