Class cc.JumpBy

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

Method Summary

Class Detail

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

Method Detail

  • {cc.JumpBy} clone()
    returns a new clone of the action
    Returns:
    {cc.JumpBy}
  • <static> {cc.JumpBy} cc.JumpBy.create(duration, position, height, jumps)
    // example
    var actionBy = cc.JumpBy.create(2, cc.p(300, 0), 50, 4);
    Parameters:
    {Number} duration
    {cc.Point} position
    {Number} height
    {Number} jumps
    Returns:
    {cc.JumpBy}
  • {Boolean} initWithDuration(duration, position, height, jumps)
    Parameters:
    {Number} duration
    {cc.Point} position
    {Number} height
    {Number} jumps
    Returns:
    {Boolean}
  • {cc.ActionInterval} reverse()
    Returns:
    {cc.ActionInterval}
  • startWithTarget(target)
    Parameters:
    {cc.Node} target
  • update(time)
    Parameters:
    {Number} time