Main Menu Help!
Currently I am working on a 2d game. Whenever I load from my main menu to the game, it goes right to level 2. It skips level 1, and goes to level 2. Here is what happens when I click on start game:
It goes from the main menu to level 2. After, it skips level 3 also and goes to level 4. My code is:
Any help is appreciated. I really want to know how to fix this problem since it always happens.
the attachments are not visible.. kindly update it so that the community can provide you with help
Answer by JollyApp · May 07, 2017 at 02:08 AM
@BaldBeardedMonk here are the images:
@OfficialCoatsee I am calling the scenes Menu and Main. I am making the variable assigned by making an empty child called "MENUCTRL" for my main menu part also. I put the script in the "MENUCTRL." After I had an on click function like this:
So I made the script, attached it to an empty child, put both scenes in the build settings, and had the on click function. But, it still skips one part of my game.
How are you calling the Scenes? What are your scenes saved as?
All your code tells us, is that you are loading the scene based on the sceneName variable.
But how is that variable being assigned?