So my game starts on a black screen Map 1 I then teleport my player to Map 2 and there I start an autorun event that sets the screen tone and then moves the character. The thing is that when doing this the character only takes one step of the many I had set on the move command. The weird thing is that if I set the starting position of the player to be on Map 2 then it runs as it should. Any ideas of this sorcery?
Transition to another map breaking my autorun event movement
RPG Maker VXAce SupportThat's not sorcery, but the regular behaviour:
I assume that you're using a map event as autorun, correct? As soon as you leave a map, then all events on that map will be stopped and the events on the next map will start. Which means that the autorun event from the previous map will no longer run as it is part of the previous map, not part of the current map.
If you want a cutscene passing several maps, then you need an autorun event on each map and design them in a way that they take over from the point where the autorun on the previous map stopped.
If you're using a common event on autorun, you'll have better control because the common events are independent of the maps - but even in that case you need to be careful on transfers, as those can mix up relative coordinates if you're not careful.
If the assumption above is not correct, we need a screenshot of your autorun to check and see what else might have gone wrong.
I assume that you're using a map event as autorun, correct? As soon as you leave a map, then all events on that map will be stopped and the events on the next map will start. Which means that the autorun event from the previous map will no longer run as it is part of the previous map, not part of the current map.
If you want a cutscene passing several maps, then you need an autorun event on each map and design them in a way that they take over from the point where the autorun on the previous map stopped.
If you're using a common event on autorun, you'll have better control because the common events are independent of the maps - but even in that case you need to be careful on transfers, as those can mix up relative coordinates if you're not careful.
If the assumption above is not correct, we need a screenshot of your autorun to check and see what else might have gone wrong.
Yeah but the Map 2 has an autorun event there. There's another event there, that run on autorun. I have everything for the scene set up on the Map 2. I'm only doing this transition from Map 1 so the player doesn't see the screen going to the right tone you know? So the game screen already starts at the dark tone I want. If I set the starting position of the player to the map 2 everything runs as it should, the player moves all right and it all goes well.
Are the movement commands that are not executed in an autorun event on map 1 or on map 2? What are the conditions on those autorun events?
Please post screenshots of all autorun events you have with a comment on which map they are.
Please post screenshots of all autorun events you have with a comment on which map they are.
You should only have one autorun event active at a time. Try disabling the second one (that doesn't have the player movement). If that works, you'll then need to either combine them into a single autorun event, or set the second one to parallel process instead.
Remember, autorun and parallel process events both repeat by default.
It could also be because your autorun event is attempting to move the player onto a tile where they can't move to (either because of map passabilities, or because there's another event there - even if it has a blank graphic).
Remember, autorun and parallel process events both repeat by default.
It could also be because your autorun event is attempting to move the player onto a tile where they can't move to (either because of map passabilities, or because there's another event there - even if it has a blank graphic).
Yeah I thought it could be something like that (player colliding with something) but as I said it works fine if the game starts at this map. The movement breaks if I start on map one and then teleport to map 2, and I don't do anything but tint the screen black on map 1.
Then you're making things too complicated. If you want the game to start out with a tinted screen, you will start on the map that you want to be tinted. All you need to do, is create an event on that (starting) map, set it to parallel process, and tint the screen (I will assume you know how to correctly end events, so I won't explain this). Now, when the player starts the game on that map, the map will be instantly tinted.
Funfact:
Parallel processes run before the map is entirely loaded (so no tint lag). Autoruns run after the map is loaded (so you see a slight lag).
Wow didn't know that parallel process runs BEFORE the map is entirely loaded! That worked perfectly! Thanks for the help guys. Sorry for the hassle 🙂
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Unlocking to add this:
Make sure you turn your map tint parallel process event off after it runs. The tint needs to happen once only, not continually while you're on the map.
So, if you're coming back to this map later and still want the tint (or if you're never coming back to this map), just use an Erase Event command after the tint command. If you are coming back to this map later but don't want it tinted, turn on a self switch and add a second page with no commands (still Action Button trigger) that's conditioned by that self switch.
And locking again 🙂
Make sure you turn your map tint parallel process event off after it runs. The tint needs to happen once only, not continually while you're on the map.
So, if you're coming back to this map later and still want the tint (or if you're never coming back to this map), just use an Erase Event command after the tint command. If you are coming back to this map later but don't want it tinted, turn on a self switch and add a second page with no commands (still Action Button trigger) that's conditioned by that self switch.
And locking again 🙂
Original thread: https://forums.rpgmakerweb.com/threads/transition-to-another-map-breaking-my-autorun-event-movement.17944/