Class cc.ScaleBy
Extends
cc.ScaleTo.
Defined in: CCActionInterval.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Scales a cc.Node object a zoom factor by modifying it's scale attribute.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
cc.ScaleBy.create(duration, sx, sy)
|
reverse()
|
|
startWithTarget(target)
|
- Methods borrowed from class cc.ScaleTo:
- initWithDuration, update
- Methods borrowed from class cc.ActionInterval:
- getAmplitudeRate, getElapsed, isDone, setAmplitudeRate, step
- Methods borrowed from class cc.FiniteTimeAction:
- getDuration, setDuration
- Methods borrowed from class cc.Action:
- copy, copyWithZone, description, getOriginalTarget, getTag, getTarget, release, retain, setOriginalTarget, setTag, setTarget, stop
Method Detail
<static>
{cc.ScaleBy}
cc.ScaleBy.create(duration, sx, sy)
// example without sy, it scales by 2 both in X and Y var actionBy = cc.ScaleBy.create(2, 2); //example with sy, it scales by 0.25 in X and 4.5 in Y var actionBy2 = cc.ScaleBy.create(2, 0.25, 4.5);
- Parameters:
- {Number} duration
- duration in seconds
- {Number} sx
- sx scale parameter in X
- {Number|Null} sy
- sy scale parameter in Y, if Null equal to sx
- Returns:
- {cc.ScaleBy}
{cc.ActionInterval}
reverse()
- Returns:
- {cc.ActionInterval}
startWithTarget(target)
- Parameters:
- {Number} target