I have a sprite (a Heads Up Display) which is visible on the old scene, and I use CCTransitionFade to transition from old scene to new scene, but I would like this sprite to stay on top of both the new and old scene during the transition.
Currently before the transition starts I remove the sprite from the old scene, and add it to new scene. This way the sprite immediately disappears when the old scene fades away, and appears on the new scene. The problem, that it should be visible on the old scene while it is fading away, and should be visible on the new scene as it is fading in.
If it’s not clear, here is some code:
HUDLayer *hud = this~~>getHUD;
My only workaround so far is to make an exact copy of hud, and add it to the newScene. Is there a better way?