我是android cocos2d的新手,后来我使用player1和player2 CCSprites n创建了一个游戏,以便将player1和player2移至精灵位置,这变得很复杂。请提供所需的文档或解决方案。
You have to use move to actions for moving sprite and then run that actions on your player
CCMoveTo moveTo = CCMoveTo.action(0.5f, CGPoint.ccp(x, y));
mPlayer1.runAction(moveTo);
where x and y are the points where you want to move your sprite and 0.ff is time interval to complete that Action.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.