RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

teleportation skill?

Started by even821, December 17, 2008, 06:45:06 AM

0 Members and 1 Guest are viewing this topic.

even821

is there a way to make a teleportation skill?   

like if the player presses a button or somthing he wi get teleported a few tiles forward

i am bad at explaining (and spelling) but i think it is possible to understand me :)

Grafikal

make a common event, track 3 variables. 1 variable for your player's X position and 1 variable for your player's Y position and 1 variable for the MapID. Then alter the X variable and add 2 or 3 to it. Then in the common event, (along with that stuff) make a teleport event command that teleports according to variables of X(+2 or 3), Y, and MapID. Put all of this inside of a conditional branch for IF your player is pressing whatever button, then all this happens. Then set the common event to parallel process and make a global switch to turn the process on and off. I haven't tested it, but I don't know what would happen if you were at the edge of a map and tried to teleport. You might get an error message, but ideally, you would just not teleport.