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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -