Cocos2d-x 3.0 action

Source: Internet
Author: User
Http://blog.csdn.net/lnb333666/article/details/16858635
// Run an action object runaction ("Action object"); // pause the action of an object Director: shareddirector ()-> getactionmanger () -> pausetarget ("object"); // pause the actions of all objects. ctor: shareddirector ()-> getactionmanager ()-> pauseallrunningactions (); // pause the action of all objects and its update function pauseschedulerandactions (); // continue the action of an object. DIRECTOR: shareddirector ()-> getactionmanager () -> resumetarget ("object"); // continue the action of all objects. ctor: shareddirector ()-> getactionmanager ()-> resumetarge TS ("ccset object"); // continues the action of all objects and its update function resumeschedulerandactions (); // stops the action of an object stopaction ("Action object "); // stop the action stopactionbytag ("tag value") of the target object; // stop the action stopallactions (); // Delete the action object Director: shareddire () -> getactionmanager ()-> removeaction ("Action object"); // Delete the action object Director: shareddirector ()-> getactionmanager () -> removeactionbytag ("tag value"); // delete all action objects Director: shareddirector ()-> getactionmanager ()-> removeallac Tions (); // delete all objects with the same tag value: sharctor: shareddirector ()-> getactionmanager ()-> removeallactionsfromtarget ("tag value "); // a few seconds later, move to the coordinate point moveTo: Create ("time", "coordinate"); // a few seconds later, move to the coordinate point moveBy: Create ("time ", "coordinates"); // after a few seconds, scale down to the specified size (1: original size; greater than 1: Zoom In; less than 1: Zoom out) scaleto: Create ("time ", "zoom in/out ratio"); // a few seconds to scale down to the specified size (1: original size; greater than 1: Zoom In; less than 1: Zoom out) scaleby: Create ("time ", "zoom ratio"); // The number of degrees after a few seconds [0,360] rotateto: Create ("time", "angle "); // how many degrees of rotation after several seconds [0,360] rotateby: Create (" Time "," angle "); // seconds later, tilt the specified angle skewto: Create (" time "," X axis angle "," Y axis angle "); // tilt the specified angle several seconds later. skewby: Create ("time", "X axis angle", "Y axis angle "); // after several seconds, jump to the specified position jumpto: Create ("time", "target location", "height", "Number of times required to reach the target "); // after several seconds, jump to the specified position jumpby: Create ("time", "target location", "height", "Number of times required to reach the target "); // bezierto: Create ("time", "ccbezierconfig constructor") based on the specified bezierconfig curve in seconds; // bezierby :: create ("time", "ccbezierconfig constructor"); // tintto: Create ("time", "Red", "green ", "Blue"); // Changes Specify the color tintby: Create ("time", "Red", "green", "blue"); // motion by curve in seconds (the softest of fitting degree 0) cardinalsplineto: Create ("time", "Control Point Coordinate array", "goodness of fit"); // in seconds, the cardinalsplineby is :: create ("time", "Control Point Coordinate array", "goodness of fit"); // A Spline Interpolation track (straight line) catmullromto: Create ("time ", "Control Point Coordinate array"); // A Spline Interpolation track (straight line) catmullromby: Create ("time", "Control Point Coordinate array") completed in seconds "); // fade out fadein: Create ("time"); // fade out fadeout: Create ("time"); // Let the target action have a rebound effect, rebound from the starting point easebouncein:: Create ("Action object "); // Let the target action have a rebound effect, and rebound from the end easebounceout: Create ("Action object"); // Let the target action have a rebound effect, and the start and end points all rebound easebounceinout :: create ("Action object"); // enables the target action to have a force return effect. The starting point is easebackin: Create ("Action object "); // give the target action a force return effect, and the end point is used as the Force return point easebackout: Create ("Action object"); // give the target action a force return effect, the start and end points are all used as the force-back points easebackinout: Create ("Action object"); // This allows the target action to have a elasticity effect, and the start point is elastic easeelasticin: Create ("Action object "); // make the target action elastic, and the end point elastic easeelasticout: Create ("Action object"); // Let the object The scale action has the elasticity effect, and the start and end points all have the elasticity easeelasticinout: Create ("Action object"); // Let the target action start easeexponentialin slowly :: create ("Action object"); // Let the target action end slowly easeexponentialout: Create ("Action object"); // Let the target action start slowly and end slowly easeexponentialinout :: create ("Action object"); // make the target action slow to easesinein: Create ("Action object"); // make the target action slow to easesineout :: create ("Action object"); // make the target action slow to fast to slow. easesineinout: Create ("Action object"); // set the easerateaction speed for the target action:: Create ("actio N object "," Speed "); // doubles the target action speed: Create (" Action object "," multiple "); // run multiple different types of actions at the same time (end with null) spawn: Create ("Action object 1", "Action object 2 ".....); // multiple target actions run sequentially (end with null) sequence: Create ("Action object 1", "Action object 2 "......); // flashes several times in a few seconds Blink: Create ("time", "times"); // repeat: Create ("Action object ", "Times"); // permanently repeats the target action repeatforever: Create ("Action object"); // delay of several seconds (delay in sequential sequence) delaytime :: create ("time"); // The lens follows the target and ends when the range is exceeded. Follow: Create ("trailing object", "trailing range"); // sphere motion in seconds orbitcamera: Create ("time", "Starting radius ", "radius difference", "Starting Z angle", "Rotating Z angle", "Starting x angle", "Rotating x angle "); // create a callback action (without the number of callback) callfunc: Create ("object", "callback function"); // create a callback action (the number of callers is the number of callback) callfuncn: Create ("object", "callback function"); // create a callback action (with two counts) callfuncn: Create ("object ", "callback function", "random number of calls ");

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.