Class cc.Place
- Defined in: CCActionInstant.js
- Extends cc.ActionInstant
Constructor Attributes | Constructor Name and Description |
---|---|
cc.Place(pos, y)
Places the node in a certain position
|
Method Summary
Class Detail
cc.Place(pos, y)
Places the node in a certain position
var placeAction = new cc.Place(cc.p(200, 200)); var placeAction = new cc.Place(200, 200);
- Parameters:
- {cc.Point|Number} pos
- {Number} y Optional
Field Detail
Please use cc.place instead.
Creates a Place action with a position.
- Deprecated:
-
since v3.0
Please use cc.place instead.
Method Detail
-
{cc.Place} clone()to copy object with deep copy. returns a clone of action.
- Returns:
- {cc.Place}
-
ctor(pos, y)Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
Creates a Place action with a position.- Parameters:
- {cc.Point|Number} pos
- {Number} y Optional
-
{Boolean} initWithPosition(x, y)Initializes a Place action with a position
- Parameters:
- {number} x
- {number} y
- Returns:
- {Boolean}
-
update(dt)Called once per frame. Time is the number of seconds of a frame interval.
- Parameters:
- {Number} dt