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
557
Reaction score
509
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
557
Reaction score
509
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
557
Reaction score
509
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
557
Reaction score
509
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 Posts

Latest Profile Posts

I know it looks more like a apple but...its a cherry, his name is: Cherry Knight
i just started uploading some of my selfmade Pixel Art on DA,
visit me there if you are interrested^^
Im sorry but..I Want to play a game.
Anyone here is familiar with the US Law ? I'm working on a game idea at the moment and I have several questions on my mind :p

Forum statistics

Threads
109,108
Messages
1,042,151
Members
141,603
Latest member
MarkStudios
Top