Ok so I wanted to try something fun.
Provided that I had 2 duplicates of the same exact map with different names, how would I set a button press to have them teleport from map 1 to map 2 at the same X & Y coordinates?
I know I am going to have to set the player's X & Y location as variables but the key press and exact translation is giving me issues.
You can have Teleport send you to a location defined by Variable. This would be X, Y and Map ID.
So, if you set X and Y positions, then you set the Map ID from each map when needed, you can teleport from one map to the other, with the same X and Y coordinates.
To check the background for key presses, you need a parallel process event - best one of the common events, not map events, if you want to use it on more than one or two maps.
Inside the event, you not only need to check for key pressed but also include waits to prevent lag (without waits, the key is checked sixty times per second - use wait(5) or wait(10) to reduce that to twelve or six times).
Another problem is that you need to make a delay after a transfer, otherwise the player would be transferred back befor he can release the button. So you'll need two common event - one that handles the teleport and then switches to the other event that blocks the teleport for a second or so...
You set the map id variable to a number, not to the current map's id. It's the id of the map you want to go to.
Also add an Erase Event at the end of your map event. You only need to set the variables once, not 60 times a second for the entire time you're on the map.
Thanks! I'll try that when I get home!
Sweet I was able to get that to work!
Awesome! New mechanic ho!
How can i do the same but with an event in rpgmaker XP? I want a thing that teleports you to the same ID on a different map when you wait or press the event
in exactly the same way - if I remember correctly there is no difference between those event commands between XP and Ace
when i activate the switch it stops working