Wait, so that means it executes right at the exact time it is "included." That is not good for me. What if I wanted to load it in memory and execute it in the main loop?
I plan on using separate code files for user input, graphics/sound setup, etc. and as such, when I include a file which is supposed to test input, it needs to be ran repeatedly as in a loop. Putting the INCLUDE/IMPORT code in the main loop just seems incorrect to me.
There HAS to be another way.
I plan on using separate code files for user input, graphics/sound setup, etc. and as such, when I include a file which is supposed to test input, it needs to be ran repeatedly as in a loop. Putting the INCLUDE/IMPORT code in the main loop just seems incorrect to me.
There HAS to be another way.
Fortunately, the way you want to do it, is exactly the way to do it, and the way you don't want to do it, is the way you shouldn't do it. :)