I have a menu file, "menu.bb," and I have a actual game file, "mainloop.bb," and when you run the menu, if you click on "Start Game," it goes to the command "Include 'mainloop.bb.'" And, if you press Escape while running "mainloop.bb," it directly includes "menu.bb." So both of these files are including each other, and I get all kinds of errors:
"Function can only appear in main program"
"Global can only appear in main program"
ETC.
Is there a way to fix this and pack my menu and game into one file?
"Function can only appear in main program"
"Global can only appear in main program"
ETC.
Is there a way to fix this and pack my menu and game into one file?