Class: MG::Parallax

Inherits:
Node
  • Object
show all
Defined in:
doc/API_reference.rb

Instance Attribute Summary

Attributes inherited from Node

#alpha, #anchor_point, #color, #name, #position, #rotation, #scale, #size, #z_index

Instance Method Summary collapse

Methods inherited from Node

#children, #clear, #delete, #delete_from_parent, #intersects?, #number_of_running_actions, #parent, #run_action, #schedule, #schedule_once, #stop_action, #stop_all_actions, #unschedule, #visible=, #visible?

Instance Method Details

#add(node, zpos, parallax_ratio, position_offset) ⇒ Node

Adds the given Node object to the receiver and configure it in the parallax view.

Parameters:

  • node (Node)

    the node to add to the receiver.

  • zpos (Integer)

    the local z-order.

  • parallax_ratio (Point)
  • position_offset (Point)

Returns:

  • (Node)

    the child node.



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

def add(node, zpos, parallax_ratio, position_offset); end