Attempt to index local 'self' (a number value)

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
MrFariator
Party member
Posts: 512
Joined: Wed Oct 05, 2016 11:53 am

Re: Attempt to index local 'self' (a number value)

Post by MrFariator »

Yeah, that's what the error traceback is good for. It will give you the chain of function calls that led to the error, and often in errors like this it's simply the previous step. Like the error you posted signals that line 21 in your state/level.lua might be the source, because it's the last place before the error on line 9 in entities/score.lua occurs. Perhaps I could've specified that more clearly, but that's basically what I was hinting at.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 140 guests