Вопрос

I have made a game on cocos2d-iphone for iPhone 4, to make it compatible on iPhone 5 wide screen I want to move cocos2d's scene a little bit on right on the iPhone 5 screen. I am trying to move scene by 50 points but after few seconds it gets back to its original position.

scene.position = CGPointMake(50, 0);

I have also set Default-568h@2x.png image in the cocos2d project

Это было полезно?

Решение

You really dont need to change the position of the scene. Just change the position of the layer that is added to your scene

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top