Re: Can't call table values??
Posted: Sat Jul 20, 2024 3:40 am
just realized the code for anim8 was in camera instead of the camera.lua. I have made at least 100 mistakes in coding and this has to be the dumbest of mine... comes up with a new error however:RNavega wrote: ↑Sat Jul 20, 2024 2:12 amOh, I mean "local module" as in the module you have in your hard drive, which seems to be different than the module over in Replit's servers. Not as in "local vs global".ThatBoiNavy wrote: ↑Fri Jul 19, 2024 9:09 pm I dont think the local module would matter as I haven't used local in the script.
If you can't post the whole project for privacy reasons, maybe just attaching camera.lua so we can see how it's supposed to be initialized. As you've tried, it needs to be something different than what you had in your original script. Maybe the snippet that MrFariator shared.
Error: main.lua:20: attempt to index global 'anim8' (a boolean value)
stack traceback:
[love "boot.lua"]:352: in function '__index'
main.lua:20: in function 'load'
[love "callbacks.lua"]:136: in function <[love "callbacks.lua"]:135>
[C]: in function 'xpcall'
[love "boot.lua"]:368: in function <[love "boot.lua"]:355>
[C]: in function 'xpcall'
Program completed in 7.93 seconds (pid: 11988).
Tis the life of a programer