MZ Fixed camera

Hey everyone!

My game has a lot of small maps, so I decided to look for a plugin that kept the game's camera fixed in a determined place, no matter where the player's walking at the moment.

I tried using Galv's MZ Cam Control, and it was really good up to a certain point because it can lock the camera to a X,Y coordinate. BUT. Unfortunately, it comes with a compulsory sliding motion, and it also doesn't have the option of locking the camera to a certain axis (X or Y instead of only "X,Y").

Can someone help me out, please?
It's been over 72 hours, which means I'm now allowed to officially bump this thread 😢

Have you tried other plguins, for example this one.

Have you tried other plguins, for example this one.

Hey there! Thanks for the suggestion, this plugin partially solved my issue.

It works flawlessly when binding the X axis. But for some reason, my game gets the following issue:

Spoiler
62207ae0b012712eb3553dca4f5176484cdd16d9.gifv


At first I thought it had something to do with my game's custom window size, so I changed its height to a perfect multiple of 32. Same problem occurred.

This is especially strange given that I analyzed the code with the little knowledge I have and verified there wasn't anything out of ordinary with it -- the same principles used for adjusting X were applied for adjusting Y. Why is this happening? 😐
I didn't use this plugin yet, but to me it looks like scroll limits overlap.

Since you can set the min and max coordinates ...
  • <minX:#>
  • <maxX:#>
  • <minY:#>
  • <maxY:#>
... I'd assume, the set values push each other out of bounds. For example, if the minY tries to be 2 from the top, but the maxY also tries to be 2 from the bottom, and they cannot both be true.

Did you try to set other min/max values?
I didn't use this plugin yet, but to me it looks like scroll limits overlap.

Since you can set the min and max coordinates ...
  • <minX:#>
  • <maxX:#>
  • <minY:#>
  • <maxY:#>
... I'd assume, the set values push each other out of bounds. For example, if the minY tries to be 2 from the top, but the maxY also tries to be 2 from the bottom, and they cannot both be true.

Did you try to set other min/max values?

Yes, I tried. ^^;
I also increased the size of the map and tried to keep the camera centered, but unfortunately this issue doesn't seem to be the case...

However, I have good news! At least I managed to remove the sliding motion from Galv's plugin by myself -- I just had to delete the Game_Map.prototype.updateScroll part. This is not what's going to stop me from using it in my game anymore. 😤

The problem with the Y axis when I use the other plugin is still very puzzling, though



EDIT: Tested the game in a big map and turns out deleting the Game_Map.prototype.updateScroll part of the plugin causes the camera to completely stop moving. Oops!

But no worries, I found an excellent plugin that does exactly everything I need. This one quite literally saved the life of my entire project! 😂
Why not make a map the size of your screen, so the camera won't move. Or if you display an image over the map the size of your screen, you won't see the player wherever they are.

If you want to show a scene on the map, you can move the camera there and then back, which is exactly how we display large structures that can't be seen on the whole screen.
Why not make a map the size of your screen, so the camera won't move. Or if you display an image over the map the size of your screen, you won't see the player wherever they are.

If you want to show a scene on the map, you can move the camera there and then back, which is exactly how we display large structures that can't be seen on the whole screen.

Right now I'm using a custom screen size that isn't fully compatible with the tile size (32x32), and also walls with custom size. Due to this, scrolling is sometimes inevitable, even though the content of the map may graphically fit perfectly inside the screen.

Now that I edited Galv's plugin I think my game will work just fine. 😤



EDIT: No, it didn't work just fine, but... Turns out I managed to find a super cool replacement, which I linked in an edit to my previous message ^^

Original thread: https://forums.rpgmakerweb.com/threads/fixed-camera.174175/