cocos2d-x 4.0 learning road (fifteen) action class summary

Regarding the Action class, the following is its overall class diagram . Because it was too long, I moved a part to the side. This is v3.0, and v4.0 is not out yet, probably about the same.
Insert picture description here
The green boxes are the classes we often use, ActionInstant (instant action) and ActionInterval (continuous action). The red arrows are all related to the categories in my previous blog.
ActionInstantThe following action classes are completed in an instant, and we cannot see the process. For example, callFunc, which calls the callback function; FlipX makes the sprite flip around the X axis, but we can't see the flip process, and it flipped over at once.
ActionIntervalUnder the action class, you can see the action process. For example, MoveTo, JumpBy, etc., we can clearly see the animation of moving or jumping.

For more knowledge, you need to continue to hone in practical applications, and no one can remember it. Just check the documentation when you need it.

Published 104 original articles · Like8 · Visit 210,000+

Guess you like

Origin blog.csdn.net/sunnyboychina/article/details/105351344