Class cc.ScaleBy

Class Summary
Constructor Attributes Constructor Name and Description
 
Scales a cc.Node object a zoom factor by modifying it's scale attribute.

Method Summary

Class Detail

cc.ScaleBy()
Scales a cc.Node object a zoom factor by modifying it's scale attribute.

Method Detail

  • {cc.ScaleBy} clone()
    returns a new clone of the action
    Returns:
    {cc.ScaleBy}
  • <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 Optional
    sy scale parameter in Y, if Null equal to sx
    Returns:
    {cc.ScaleBy}
  • {cc.ActionInterval} reverse()
    Returns:
    {cc.ActionInterval}
  • startWithTarget(target)
    Parameters:
    {Number} target