Am a newbie in using sprite builder and cocos2d.
I Have done the sprite continuos running using sprite builder and its timeline. i.e Hero sprite will run continuously once app launches like temple run game.
Here this sprite should jump if user taps the screen. Am struct with implementing this how to make my running sprite to jump on tap on screen ?
Here below is the code which I written inside touchBegan for make my sprite to jump. Here I need to merge this running animation with sprite jump animation. Any suggestion and help will be greatly helpful.
[_hero.physicsBody applyImpulse:ccp(0, 400.f)];