Using Cocos2d 3.3 + Box2d :
Lets says my game has 3 lives for each level. I use Physics objects in my game, and launch a bulletA (by applying force to it) to hit target(s).
Now after 'x' seconds I consider this attempt (life 1) to be over and the user gets ready to launch another bulletB. ('life 2') etc
I am using a camera to track the bullet, since the area is larger the phone screen. At the end of 'x' secs, the bullet fades while there is a pause in the game &
the Camera pans back to the starting location, where the next bullet can be launched.
At the end of BulletA & When BulletB gets ready to be launched, I want to
- Pause the game for a couple of seconds (How do I do this. Can I use CCActionDelay while using Physics?)
- Stop the physics simulation ( Should I be doing this? - How do I end life1 and go to next)
- Fade Out BulletA (using CCFadeOut?)
- How do I reuse BulletA to launch as BulletB? (I tried using CCFadeIn and setPosition for the BulletA, but it stays hidden)