Class cc.JumpTo

Class Summary
Constructor Attributes Constructor Name and Description
 
Moves a cc.Node object to a parabolic position simulating a jump movement by modifying it's position attribute.

Method Summary

Class Detail

cc.JumpTo()
Moves a cc.Node object to a parabolic position simulating a jump movement by modifying it's position attribute.

Method Detail

  • {cc.JumpTo} clone()
    returns a new clone of the action
    Returns:
    {cc.JumpTo}
  • <static> {cc.JumpTo} cc.JumpTo.create(duration, position, height, jumps)
    // example
    var actionTo = cc.JumpTo.create(2, cc.p(300, 300), 50, 4);
    Parameters:
    {Number} duration
    {cc.Point} position
    {Number} height
    {Number} jumps
    Returns:
    {cc.JumpTo}
  • startWithTarget(target)
    Parameters:
    {cc.Node} target