Running another main.lua from inside a game
Posted: Tue Mar 19, 2013 9:25 am
Hi all!
I have been creating a game, and have run into a problem.
I have created separate scenes, that are separate from each other. I want it so that, when something is clicked in one scene, it loads another scene.
The folder structure is as so:
menu -
/textures/
/sounds/
/main.lua
intro-1 -
/textures/
/main.lua
I want it so that when a button is clicked in the menu program, it runs the intro-1 program, but can't seem to get it to run another file from the program.
Any suggestions? I need help!
If you need clarification on anything, I can provide it.
Thanks
Outlaw11A
I have been creating a game, and have run into a problem.
I have created separate scenes, that are separate from each other. I want it so that, when something is clicked in one scene, it loads another scene.
The folder structure is as so:
menu -
/textures/
/sounds/
/main.lua
intro-1 -
/textures/
/main.lua
I want it so that when a button is clicked in the menu program, it runs the intro-1 program, but can't seem to get it to run another file from the program.
Any suggestions? I need help!
If you need clarification on anything, I can provide it.
Thanks
Outlaw11A