These animations appear to be very many, all created once.The code is as follows:/* Animation */Auto SP = sprite::create ("card_bg_big_26.jpg"); Size size = Director::getinstance ()->getwinsize (); Sp->setscale (0.2); Sp->setposition (VEC2 (
The action provided by the Cocos2d-x, which can be used as long as it is a CCNode object. 1. Common Operations: 1) runAction (cocos2d: CCAction * action) execute an action action2) CCDirector: sharedDirector ()-getActionManager ()-pauseTarget (cocos2
Action class overview
A game, design again NB game, if all is a bunch of static pictures, no action, that can only "hehe". The action system has a very important influence on the success of a game. So, this article summarizes the actions in Cocos2d-
[Nagging]
In a movie, a role's movement is an action. In the game, animation is the role action. Such as walking, jumping, releasing magic, flying birds, and rolling wheels. Action is an indispensable part of the game, making the game more
Basic Principles
An action class is the base class for all actions, and the object that is created represents an action. Actions work on node, so each action needs to be performed by the node object. The action class, as the base class, is actually
Implement actionAction is at the heart of the Struts2 application, where a large number of action classes are required and the action is configured in Struts.xml. The action contains the processing logic for the user request, and the action class is
Implement actionAction is at the heart of the Struts2 application, where a large number of action classes are required and the action is configured in Struts.xml. The action contains the processing logic for the user request, and the action class is
Action is the base class for actions, and all actions derive from this class, and an object it creates represents an action. Actions work on node, so any action needs to be performed by a node object.Move an elf from the middle of the screen for 3
Cocos2d-x 3. x Action
Action is the base class of an Action. All actions are derived from this class. An object created by the Action represents an Action. Actions Act on the Node. Therefore, any action must be executed by the Node object.
// Move
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
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.