Class cc.Place
- Defined in: CCActionInstant.js
- Extends cc.ActionInstant
Constructor Attributes | Constructor Name and Description |
---|---|
cc.Place()
Places the node in a certain position
|
Method Summary
Class Detail
cc.Place()
Places the node in a certain position
Method Detail
-
Creates a Place action with a position
// example var placeAction = cc.Place.create(cc.p(200, 200)); var placeAction = cc.Place.create(200, 200);
- Parameters:
- {cc.Point|Number} pos
- {Number} y Optional
- Returns:
- {cc.Place}
-
ctor(pos, y)Creates a Place action with a position Constructor of cc.Place
var placeAction = new cc.Place.create(cc.p(200, 200)); var placeAction = new cc.Place.create(200, 200);
- Parameters:
- {cc.Point|Number} pos
- {Number} y Optional
-
{Boolean} initWithPosition(pos, y)Initializes a Place action with a position
- Parameters:
- {cc.Point} pos
- y
- Returns:
- {Boolean}
-
update(time)
- Parameters:
- {Number} time