Joined
Jun 18, 2021
Messages
1
Reaction score
0
First Language
English
Primarily Uses
RMMV
Hello! I'm attempting to zoom in on the map, but here's what I'm ultimately trying to do: the room the player is currently in is a very small bedroom, but when running the game, there's to much blank space shown to the player and it's too far out. I'd like to zoom in to make the room closer to the screen. However, I'd also like the camera to lock in place so it doesn't follow the player around and it looks like the tiny room is moving around. So I've been avoiding using $gamePlayer.screenX(). Here's what I have:
eventWindow.JPG

What I tried to do was have it zoom in on wherever the event was placed, but that's not working. It seems to go into the upper left corner or move in that direction on a bigger map no matter what I input. I've also tried just using plain number in place of the x and y but get the same result. What I'm assuming is that I'm completely misunderstanding how this zoom actually works. Is there a different way I should be doing this or an easier way to go about zooming in and locking the camera?
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
6,115
Reaction score
5,815
First Language
English
Primarily Uses
RMVXA
I have moved this thread to JavaScript Plugin Requests as I believe there are camera/zoom plugins that will allow you to do this more easily, but I forget their names. Maybe someone can link you to them.

If you come up empty, you might be able to get help writing the correct syntax/logic in Learning JavaScript. Just report this post and ask for a move over there if you need it.
 

coucassi

Veteran
Veteran
Joined
Sep 23, 2019
Messages
131
Reaction score
196
First Language
German
Primarily Uses
RMMV
Here you go :) It's SRD Camera Core, which allows you to zoom in and out as well as lockong the camera on a certain tile and some other functions.
 

ct_bolt

Creator
Veteran
Joined
May 3, 2012
Messages
975
Reaction score
567
First Language
Javascript
Primarily Uses
RMMZ
I believe I had trouble in the past with other Zoom plugins and that's partly why I wrote one... honestly haven't revisited it in a while though...

well anyways if no others work for exactly what you need here is this also...
 

Latest Threads

Latest Posts

Latest Profile Posts

Is it weird that i feel overwhelmed from reading codes that i wrote few months ago? Lol.

I dont even know where to continue!:hsad:
Ami
Gosh,I want to Play this Game Again one more again!

Seeing my Own Character & Kannono Once Again!
Tales_of_the_World_Radiant_Mythology_3_JPN_PSP-Coverart.jpg
I've been a bit to depressed to get work done on the game lately. Don't worry, I'll be okay.
LunarFlareStudios wrote on Solar_Flare's profile.
Hey, my name is Lunar Flare Studios, and you're Solar Flare? That's so weird!

Forum statistics

Threads
115,301
Messages
1,088,750
Members
149,943
Latest member
Chymora
Top