When editing an activity that includes "monsters", you can use a monster setting to create a teleport location.
Within a platform activity select a "monster", right click on it and change the image to your teleport image. Once you are happy with your image, click on the green rotation arrow below the image to view the animation options that are attached to this image. Click on the third option (what do to during a collision) and click on the "advanced" option. in the script box that appears, enter the following code;
_root.player._x=400;
_root.player._y=20;
Where x is a value for the location horizontally on screen between 0 - 640 and y is a value for the vertical position between 0 - 480. Note that in both cases, 0 is found at the top left of the screen. Download this handy screen position guide to help;
Now when your character runs over the teleport image, your character will disappear and reappear in the designated location.
View example; Download Teleports


Recent Comments