Purging a scene! Help!

Hey all.

my game has one level and you can go from level.lua to menu.lua but everything seems to be screwing up and I’ve been told to purge my scene. Where should I place my:

storyboard.purgeScene(“menu”)

and

storyboard.purgeScene(“level”)

Thanks!

James

I find that generally placing them in the enterScene function works fine

Don’t get me wrong if I could kiss you I would right now.

Thank you very much

(no homo)

James

I generally prefer to call purgeScene() just before I call gotoScene().  You know where you’re going so it’s easy to purge it.

Though it’s actually best to learn to use the willEnterScene() function to reset everything.  Purging is “programmer” easy but it’s kinda tough to dump the memory and reload everything.

Rob

I find that generally placing them in the enterScene function works fine

Don’t get me wrong if I could kiss you I would right now.

Thank you very much

(no homo)

James

I generally prefer to call purgeScene() just before I call gotoScene().  You know where you’re going so it’s easy to purge it.

Though it’s actually best to learn to use the willEnterScene() function to reset everything.  Purging is “programmer” easy but it’s kinda tough to dump the memory and reload everything.

Rob