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:

  • location (Point)

    a point that the receiver will jump to

  • height (Float)

    the height of the jump

  • jumps (Float)

    the number of jumps

  • interval (Float)

    the animation interval.



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

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