Thank you
This fixed my issue. I am new to Lua and Love so I was unaware I had to use the '__index' metamethod for the code to function. I appreciate the support
Search found 2 matches
- Sun Oct 20, 2024 4:56 pm
- Forum: Support and Development
- Topic: Can't call table function as method is a nil value
- Replies: 2
- Views: 714
- Sun Oct 20, 2024 2:27 pm
- Forum: Support and Development
- Topic: Can't call table function as method is a nil value
- Replies: 2
- Views: 714
Can't call table function as method is a nil value
Hello I am trying to implement a spawn function where enemies spawn at a specific rate which I am calling from the enemy.lua file to the main file. However, I keep on getting the error: main.lua:55: attempt to call method 'spawn' (a nil value) When I try to call the spawn function, I can't figure ou...