开发者

Cocos2D LevelSVG iPhone Parallax Background, Adding during runtime

Guys. I'm writing a scrolling shooter game that has a very large Background image chopped up into smaller images to make it more manageable. Right now it i开发者_Go百科s setup so when the GameNode is init'd. A big long list of Images are added to the ParallaxNode and it is added to the Game. I thought I might save a lot of memory if I only kept one or two loaded into memory and swap them out as the Hero Character moves through the level. The problem is I can't seem to create a parallax background in another method that's called later. No errors it just doesn't show and seems to be the same code. Any Ideas?


Well I created the parallax layer having four layers in it and added it to the level layer which is extending from GameNode. If you can post some code, that may help.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜