Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Can I switch scenes by swipe gesture or drag?

In my game, there are three main scenes, each of them has several layers which have some UI elements, these elements have some tap gesture.

enter image description here

I already know some ways to switch scenes, such as replaceScene, or by some transitions ways, just like CCTransitionMoveInT, so swiping scenes is feasible or not?

If not, why?

If yes, is it possible to cause memory increases that my gameApp crash?

share|improve this question
    
Like, how you change screens for apps so at some point you can see half of both scenes at once? Or if you swipe it switches to a different scene? The latter is easy, maybe, the former not so much, at least not in anyway I'm aware of. –  Tony Mar 26 '13 at 18:34
    
Thanks for your answer,Tony.My situation is the former.Unfortunately, just like what you said, till now, I cannot find a solution to this question.Replacing scenes has it's own way. –  ChildhoodAndy Mar 27 '13 at 4:05

1 Answer 1

up vote 1 down vote accepted

Use the CCScrollLayer class from cocos2d-iphone-extensions project. It does exacactly what you want except for the scene changing part. Though you don't really need to change scenes here, a single scene with multiple layers works just as well.

share|improve this answer
    
YES!CCScrollLayer does works, maybe i really don't need to change scenes here. –  ChildhoodAndy Apr 10 '13 at 9:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.