Action moveWander

Description
Move in a randomly selected direction with Move_Line. After a certain time interval, change directions and continue moving.

Properties
Required Properties:

speed: Int, speed of movement, in pixels per frame.

wanderInterval: Int, number of ms to pass before changing directions.

Optional Properties:

None.

Properties Set:

direction: String, either "up", "down", "left", or "right". Direction of movement.

updateWander: Int, the next system time (in ms) to change directions.