Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はandroid cocos2dを初めて使用します。後でplayer1とplayer2のCCSpriteを使用してゲームを作成し、player1とplayer2をスプライト位置に移動しましたが、複雑になりました。必要なドキュメントまたは解決策を提供してください。
スプライトを移動するには move to アクションを使用し、プレーヤーでそのアクションを実行する必要があります
CCMoveTo moveTo = CCMoveTo.action(0.5f, CGPoint.ccp(x, y)); mPlayer1.runAction(moveTo);
ここで、x と y はスプライトを移動するポイントで、0.ff はそのアクションを完了するまでの時間間隔です。