New account registration is temporarily disabled.

MAP SCROLLING QUESTION

Posts

Pages: 1
I have a somewhat large map that consists of small rooms player transfers in between.

Is there any way to disable map scrolling with player movement? Just as if each room was a tiny, separate map.
Not very easily. It's better just to use tiny separate rooms.
Any time you ask for help, you need to say which engine you are working in. The answer is usually very different.

I hate when something simple is in 2k3, but not in Ace. Like being able to lock the camera. You can only pan screen.

author=Link_2112
Any time you ask for help, you need to say which engine you are working in.

uhh, this is true - my apologies. It's VX Ace.

I tried an event with "movement" -> "scroll map" command to move in the opposite direction the player is going but it's not working as I want.

I think I'll just leave it the way it is. Map scroll in this situation is not game breaking and trying to change it is not worth the effort.
If the entire room fits on the screen at one time, I've got yer fix, right here.

This isn't extensively tested, so let me know if you have an issue:

In Game_Map add this line after the last attr_accessor:
attr_accessor :can_scroll

In Game_Player, find the update_scroll method and add this as its first line:
return  if $game_map.can_scroll == false

Now, on maps where it shouldn't scroll, have an event do as follows:

Script (found on the last event page):
$game_map.can_scroll = false

This will, of course, disable all scrolling, including the pan screen command (as far as I can tell).
Wow, this worked amazingly well. Simple and exactly what I needed.

It is possible to turn the scrolling back on with an event $game_map.can_scroll = true when necessary so it's perfect.

Thank you so much Travio!
As I said, it's not extensively tested (just made sure it had the functionality you needed), so if there's an issue, let me know and I can mess around with it fix it up.

Edit: Better yet, fire off a PM to me; I'll probably see it faster.
Pages: 1