cocos2d iphone - how to change the position of player using left and right button when the player is jumping? -


cocos2d offers 2 ways let player jump up, using jumpto() , jumpby(), people not change position of sprite more when jumping up.

how write method sprite can jump "super mario"?

some time ago contributed cocos2d code made ccmove , ccjump actions stackable. see here. starting cocos2d 2.1, can apply ccjump actions concurrently other movements.

however, if want fine tune how controls of game feel, i'd avoid using ccactions altogether , i'd manage sprite.position directly processing player input.


Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -