开发者

Unmovable menu on scene

开发者 https://www.devze.com 2023-03-11 21:44 出处:网络
I want to add a menu on my cocos2d scene, but I don\'t want to move it with scene\'s position. (I understand that, if we add something on scene, then that will move with scene, so please provide me开发

I want to add a menu on my cocos2d scene, but I don't want to move it with scene's position. (I understand that, if we add something on scene, then that will move with scene, so please provide me开发者_如何转开发 any alternative solution).


I would suggest you don't move the scene. Instead put your menu item on a layer within the scene and then the rest of what was in your scene in another layer, then move that layer instead of the whole scene.

0

精彩评论

暂无评论...
验证码 换一张
取 消