Class: MG::JumpTo

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

Instance Attribute Summary

Attributes inherited from Action

#done?

Constructors collapse

Methods inherited from Action

#clone, #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.



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

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