SlideCommand
Extends: ESCBaseCommand < Resource
Description
slide object target [speed]
Moves object
towards the position of target
. This command is
non-blocking.
object: Global ID of the object to move
target: Global ID of the target object
speed: The speed at which to slide in pixels per second (will default to the speed configured on the
object
)
Warning This command does not respect the room’s navigation polygons, so
object
can be moved even when outside walkable areas.
@ESC
Method Descriptions
configure
func configure() -> ESCCommandArgumentDescriptor
Return the descriptor of the arguments of this command
validate
func validate(arguments: Array)
Validate whether the given arguments match the command descriptor
run
func run(command_params: Array) -> int
Run the command
interrupt
func interrupt()
Function called when the command is interrupted.