- Home /
having trouble with a return to main menu script
This is my first game and im using unity and have made 4 game levels(scenes) and a menu scene 0-4 in build order. I can advance levels but after the 4th level i want to return to the main menu but i just cant seem to make it work. It either returns after 1 or 2 levels or fails when it cant load level 5. I would appreciate any advice you folks can give. http://pastebin.com/nTvmXVbi
Answer by Mmmpies · Jan 28, 2015 at 07:05 PM
Try commenting out this line:
Level_cap = cur_Level +1;
If you're on Level 4 it sets the Level_cap to 5.
Ah thank you, its a leftover from pounding my face uselessly on the keyboard screa$$anonymous$$g why wont you just work. Works fine now :)
Your answer
Follow this Question
Related Questions
How to fix menu colors in mono develop 1 Answer
How can i make a main menu? 1 Answer
Script open help? 1 Answer