I want to have a few sprites, which will stay in the same position during gameplay no matter what movement of camera will take place. I have game node, then player cclayer inside of which I make [self addchild:newsprite]; like statements several time.
I tried convertToWorldScene method but it's the wrong way for sure. Player not always stay in center of screen so I can't perform like that. Any suggestions?
how to position sprites, so they are always in same position on screen
(2 posts) (2 voices)-
Posted 1 year ago #
-
You want one layer where you put your camera on and one layer where all the objects go that don't need to move with the camera. Both layers need to be added to the scene.
Posted 1 year ago #
Reply
You must log in to post.