跳到指定点


描述

This action is used to move an instance from one location to another. The instance will not move smoothly to the new position, but will "jump" to be placed there, so if the values are large enough then it will "skip over" any other instances on the way. You can set absolute values to move the instance to, or you can tick the "relative" flag to have the instance move relative to the current position. For example, if you want the instance to jump 10 pixels to left only, you would set the x value to -10 and the y value to 0 and tick relative for both. You can use negative values for absolute coordinates and the instance will be moved outside of the base room area.


动作语法:

Jump To Point Syntax


参数:

参数 描述
x The x position to jump to
y The y position to jump to


例如:

Jump To Point Example
The above action block code checks for a mouse left click on the instance and if one is detected it moves it to a random position within the room.