Search found 2 matches

by Merkel
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

Re: Can't call table function as method is a nil value

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
by Merkel
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...