I looked at the tutorial,
It was very helpful in explaining everything i needed to know.
I am having a bit of trouble now, in my game i have a character moving function and all the other function relating to the movement and controls of the hero and i put it into a new lua file called HeroCode and i did all the module(…, package.seeall) at the top and in the game file i put the local HeroCode = require(“HeroCode”). I then did the made each function in the HeroCode file and made them local to the game file. I tried to play them using a runtime event listener but when they were played it gives me an error that says “a nil value” in places in the HeroCode file. Those values and such are stated in the game file but not the HeroCode file, like i have the function for movehero in the HeroCode file but not the hero’s sprites, and physics and all that stuff in that file.
Do i need to state the Hero’s sprite and physics in the HeroCode file, or am i just doing something wrong?
Thanks,
-Boxie [import]uid: 113909 topic_id: 29066 reply_id: 117034[/import]