Class cc.Place

Class Summary
Constructor Attributes Constructor Name and Description
 
Places the node in a certain position

Method Summary

Class Detail

cc.Place()
Places the node in a certain position

Method Detail

  • <static> {cc.Place} cc.Place.create(pos)
    creates a Place action with a position
    // example
    var placeAction = cc.Place.create(cc.p(200, 200));
    Parameters:
    {cc.Point} pos
    Returns:
    {cc.Place}
  • {Boolean} initWithPosition(pos)
    Initializes a Place action with a position
    Parameters:
    {cc.Point} pos
    Returns:
    {Boolean}
  • update(time)
    Parameters:
    {Number} time