JumpTo (of Jump)

class JumpTo

Defined in Jump.sc.

This makes an Actor jump to a certain location.

Example usage:

(theRobot setMotion: JumpTo 240 150)
class diagram

Properties

Inherited from Jump:

Property Description
client  
caller  
x  
y  
dx  
dy  
b-moveCnt  
b-i1  
b-i2  
b-di  
b-xAxis  
b-incr  
completed  
xLast  
yLast  
gx  
gy  
xStep  
yStep  
signal  
illegalBits  
waitApogeeX  
waitApogeeY  
name  

Methods

init(theClient theX theY [theCaller])

Initializes the JumpTo motion.

Parameters:
  • theClient (heapPtr) – The Actor to which this applies.
  • theX (number) – The x target.
  • theY (number) – The y target.
  • theCaller (heapPtr) – The optional object that will be cue()’d when the jump is complete.
moveDone()