开发者

cocos2d 1.0 beta transition between two scenes and the program just quit?

Hi am new to xcode and cocos2d development. I have a question about switch scenes. I have one class is call开发者_JS百科ed "GameScene" and has a schedule call "scheduleTarget" to add a target on the scene every 0.3 second. When I switch from GameScene to GameOverScene or ManuScene using scene transition method, the program just quit without any error message.

I tried to clean up the memory by release the objects and call dealloc and onExit.

I also tried to unschedule the call "ScheduleTarget". But nothing helps.

Anybody know what is my problem?

Thanks


I figure out the problem. I assign the dealloc the variable a value. :(

I am so happy this issue has been solved.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜