Class cc.MoveTo

Class Summary
Constructor Attributes Constructor Name and Description
 
Moves a CCNode object to the position x,y.

Method Summary

Class Detail

cc.MoveTo()
Moves a CCNode object to the position x,y. x and y are absolute coordinates by modifying it's position attribute.
Several CCMoveTo actions can be concurrently called, and the resulting
movement will be the sum of individual movements.

Method Detail

  • {cc.MoveTo} clone()
    returns a new clone of the action
    Returns:
    {cc.MoveTo}
  • <static> {cc.MoveBy} cc.MoveTo.create(duration, position)
    // example
    var actionBy = cc.MoveTo.create(2, cc.p(80, 80));
    Parameters:
    {Number} duration
    duration in seconds
    {cc.Point} position
    Returns:
    {cc.MoveBy}
  • {Boolean} initWithDuration(duration, position)
    Parameters:
    {Number} duration
    duration in seconds
    {cc.Point} position
    Returns:
    {Boolean}
  • startWithTarget(target)
    Parameters:
    {cc.Node} target