MoveFwd (of PolyPath)

class MoveFwd

Defined in MoveFwd.sc.

This is a Motion class that moves an Actor forward some amount.

Example usage:

; Move the ego forward 50 pixels, and cue the calling script when done.
(gEgo setMotion: MoveFwd 50 self)
class diagram

Properties

Inherited from PolyPath:

Property Description
client  
caller  
x  
y  
dx  
dy  
b-moveCnt  
b-i1  
b-i2  
b-di  
b-xAxis  
b-incr  
completed  
xLast  
yLast  
value  
points  
finalX  
finalY  
obstacles  
name  

Methods

init(theClient distance [theCaller])

Initializes the MoveFwd instance.

Parameters:
  • theClient (heapPtr) – The Actor to which this is attached.
  • distance (number) – The distance to move forward.
  • theCaller (heapPtr) – Optional object on which cue() will be called when the target is reached.