Class: MG::JumpTo

Inherits:
Action show all
Defined in:
doc/API_reference.rb

Constructors collapse

Methods inherited from Action

#clone, #done?, #reverse

Constructor Details

#initialize(location, height, jumps, interval) ⇒ JumpTo

Creates an action that will jump the receiver to a new location.

Parameters:

  • a point that the receiver will jump to

  • the height of the jump

  • the number of jumps

  • the animation interval.



81
# File 'doc/API_reference.rb', line 81

def initialize(location, height, jumps, interval); end