跳转到起点


描述

This action is used to move an instance from its current position to the position where it was originally created. The original position where an instance is created is stored in two instance variables called xstart and ystart. These variables can be used in any other action and can also be set to change the recorded start position.


动作语法:

Jump To Start Syntax


例如:

Jump To Start Example
The above action block code checks to see if the top of the instances bounding box is below the room height and if it is it moves the instance back to the position it was created at.