SetSpeedCommand

Extends: ESCBaseCommand < Node

Description

set_speed object speed

Sets the speed of a ESCPlayer or movable ESCItem.

Parameters

  • object: Global ID of the ESCPlayer or movable ESCItem

  • speed: Speed value for object in pixels per second.

@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.