If i do a (dofile "game.lua") can i from that Game.Lua get etc "Base" from the lua i came from?
Between index.lua and game.lua
I really need help with this, either i am stuck. :P
Using 2 .Lua's together
Moderators: Shine, Insert_witty_name
How hard would that be to find out ??
You might need a startup program that is never revisited to set initial
values of variables, load pics, etc so they don't happen again, but
after that I don't see why you can't jump from one file to another.
The only problem I have found is that the file is loaded from memory
stick each time, even if it has already been loaded to RAM.
This will cause things to slow down while moving from one file to another.
Traditionaly, new data is loaded between levels of a game.
Art.
You might need a startup program that is never revisited to set initial
values of variables, load pics, etc so they don't happen again, but
after that I don't see why you can't jump from one file to another.
The only problem I have found is that the file is loaded from memory
stick each time, even if it has already been loaded to RAM.
This will cause things to slow down while moving from one file to another.
Traditionaly, new data is loaded between levels of a game.
Art.
-
- Posts: 5
- Joined: Wed Feb 01, 2006 2:29 am
-
- Posts: 13
- Joined: Fri Jan 20, 2006 4:21 pm
I have tryed to change "BGSound" to "BGSound2" from Menu.lua when "BGSound" is loaded from Game.lua And i diden't work at all.Art wrote:How hard would that be to find out ??
You might need a startup program that is never revisited to set initial
values of variables, load pics, etc so they don't happen again, but
after that I don't see why you can't jump from one file to another.
The only problem I have found is that the file is loaded from memory
stick each time, even if it has already been loaded to RAM.
This will cause things to slow down while moving from one file to another.
Traditionaly, new data is loaded between levels of a game.
Art.
-
- Posts: 13
- Joined: Fri Jan 20, 2006 4:21 pm