script command: Teleport

What this does
This command sends the player to another map. This is usually used when they reach the edge of a map or walk into a doorway. Transitions can also be used to make the screen fade-out and fade-in during the teleport.

Usage
When you click the button to create this command, the screen will darken to hilight which parts of the editor you can interact with.
First, navigate to the level you want to go to in the level browser on the left and double-click it. The new level will be displayed.
Next, click a tile in the map you want the player to end up on.
To exit the teleport editor, press ESC.
If you turn off "Snap to Tile" then you can click any location on the map.
Alternatively, you can adjust the exact coordinates on the lower-right. These are displayed twice because you can type in variable names in the lower boxes. This allows you to control the player's coordinates using variables instead of exact numbers. The variables you use must contain numbers.

Transitions
There are a few transitions you can use. If the game contains transitions that are not specified here, you can type the linkage name of the transition to use.

transition_cut
This simply jumps to the next map without any apparent effect.

transition_fade
This fades-out and then fades-in to the next map.
transition_greyMap
This transition performs a fancy wipe based on a grayscale image. To specify which image to use, you need to use a variable command before teleporting to set the TRANSITION.map variable to the file path of the image you want to use, for example:
swf\_greyMaps\radioWaves.png
All file paths are relative to game.exe.

transition_blackMap
This transition is similar to transition_greyMap except that it'll fade to black and then use the fancy wipe to reveal the new map.

Last updated: August 27, 2011