Can't change scenes

Hello all,

I have a weird problem, but it’s probably not too hard to figure out.

I’m trying to do a basic 3 scene app - menu, game, and dead scene.  My intro to game scene part works fine.  My dead scene to main scene works fine.  It’s just my game scene doesn’t change scenes when I tell it to.  I found the problem - if I put the change scene command in the createScene event, it works.  But in the ‘willEnterScene’ it doesn’t work.  Now I don’t want to have to reload all data each time the game runs - just reset a few settings.  Is that possible?  Also, why does it work when I call it in createScene, but not willEnterScene? (also enterScene doesn’t work either).

Thanks

I have a line that i put in all sections of the scene which may be a starting point for you to work from.

if prtScene then print( WhatScene…"- Create" ) end

Basically a print to terminal if statement - if i want to see the prints make a variable prtScene to true - then it prints out and you see how the order of things happen.

I am using composer but the create scene is entered before show.

Using the prints to terminal is a good skill to get in the habit of using.

T.

I have a line that i put in all sections of the scene which may be a starting point for you to work from.

if prtScene then print( WhatScene…"- Create" ) end

Basically a print to terminal if statement - if i want to see the prints make a variable prtScene to true - then it prints out and you see how the order of things happen.

I am using composer but the create scene is entered before show.

Using the prints to terminal is a good skill to get in the habit of using.

T.