RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
transfer to other map location based on current x/y

0 Members and 1 Guest are viewing this topic.

***
FURRY 4 LIFE. Here kitty kitty kitty....
Rep:
Level 87
i need to transfer the player to another map. but the coords are based on the current coords of the player. i could just make an event on every square, but that would suck ass. i want to use a variable to do it, but have no idea how.
"screaming out the mating call. i've become the lord of love"

caramelldansen forever!

***
Rep:
Level 86
Yeah... about that.....
Try this:

Set Variable:[Player X] to Player's Screen X.
Set Variable:[Player Y] to Player's Screen Y.
Subtract Variable:[Player X] by [Next Map Width - 1]    (ex.  20-wide map, subtract 19)
Set Variable:[Map ID] to Constant(whatever the next map id is) {found by map number, or hitting space on a map and getting the ID}

Teleport to [Player X], [Player Y], [Map ID]


You'd put this into one event and then copy it to every teleport square.  The maps have to be the same height or correspond (Map 1 Upper right hand corner is next to Map 2 Upper Left hand corner).

I'm on my dad's laptop, so I can't test if it works yet.
This is a signature.