Help with scene management, please!

im trying to make my game with about 40 levels, but i have no idea how to load my scene, i want a button to be touched then load the scene, then when that level is done, i want it to go back to the level selection screen. any help? [import]uid: 10827 topic_id: 4211 reply_id: 304211[/import]

try the director class:
http://developer.anscamobile.com/code/director-class-10 [import]uid: 7856 topic_id: 4211 reply_id: 13087[/import]

yeah bro i’ve tried that. i have a problem with that though, i made one button lead to level 1 in my game, level 1 loads and i can play it and everything but for some reason, if i click anywhere on the screen while playing level 1, it goes to another level. idk whyy [import]uid: 10827 topic_id: 4211 reply_id: 13088[/import]

it sounds like you either have one of these:

  1. Didn’t properly add to the returned group for that scene.
  2. Event listener is catching, the button on the back (layering issue perhaps?) [import]uid: 11334 topic_id: 4211 reply_id: 13131[/import]

I use a little of the Director class… but I think the implementation of TabBar:
http://developer.anscamobile.com/content/tab-bar

… is a little better for what you’re trying to do…

All I did was remove the loading of the TabBar and you have a good way to load your scenes.

I hope this helps. [import]uid: 10965 topic_id: 4211 reply_id: 13354[/import]