ios - How to change the Content Node for a CCSrollView in SpriteBuilder -
i'm building game requires levels. these levels, fit onto 1 page have had add together them ccscrollview. view loads automatically, have set in spritebuilder app. ccsrollview has been added in mainscene.ccb file, , content node scroll view level.ccb. i'm trying have button in level.ccb changes scene/content node level called gameplay.ccb. i've tried writing code alter scene in mainscene.m , level.m files in xcode. these bring error. i'm still learning code, sorry if question has been asked or has easy solution
- (void)levelone { ccscene *gameplayscene = [ccbreader loadasscene:@"gameplay"]; [[ccdirector shareddirector] replacescene:gameplayscene]; }
this piece of code how switch scene without scrollview
if not understand problem , code send me message , email source code
thanks!
ios uiscrollview cocos2d-iphone spritebuilder
No comments:
Post a Comment