i am creating a game which has a HUD layer on top showing scores and stuff.
The main game screen window is movable during the game so i cant add the HUD layer directly as it starts to move alongwith the game window and goes offscreen.
So i want to add the HUD layer to the top on game window .how can i achieve that??
i am creating a game which has a HUD layer on top showing scores
Share
As I can imagine, you have game screen window as
CCLayerobject. So, create newCCLayer, add it to your scene above game screen and add HUD into it. Otherwise please share your code.