Search found 4 matches

by Chimericect
Sat Jul 24, 2021 9:24 pm
Forum: Support and Development
Topic: SOLVED [ Will reuse thread ]
Replies: 6
Views: 5048

Re: Unable to index (a nil value) [ Help needed ]

Ohhh I think I understand what's going on a bit now. Apologies for the mess, I've been trying hard to fix things and I think I made it worse in the process. I'll post in this thread again when I have gone through, I think you guys really helped the fuzzy brain moments that I had! Thank you a lot for...
by Chimericect
Sat Jul 24, 2021 8:57 pm
Forum: Support and Development
Topic: SOLVED [ Will reuse thread ]
Replies: 6
Views: 5048

Re: Unable to index (a nil value) [ Help needed ]

I missed the github link, my apologies. Generally people post the relevant code directly onto the forums. In any case though, the issue is simple: function BaseState:render() local anim = self.entity.currentAnimation love.graphics.draw(gameTextures[anim.texture], gameFrame[anim.texture][anim:getCur...
by Chimericect
Sat Jul 24, 2021 8:32 pm
Forum: Support and Development
Topic: SOLVED [ Will reuse thread ]
Replies: 6
Views: 5048

Re: Unable to index (a nil value) [ Help needed ]

As per the error states, on line 28 in BaseState.lua, you're trying to index a local variable called 'anim', but it's nil. Indexing a nil value suggests you're trying to treat it like a table, when its value is in fact nil (which basically means an absence of a value). Perhaps you tried to assign a...
by Chimericect
Sat Jul 24, 2021 6:49 pm
Forum: Support and Development
Topic: SOLVED [ Will reuse thread ]
Replies: 6
Views: 5048

SOLVED [ Will reuse thread ]

Hey there! I'm currently working on a project to graduate. It does not have to be perfect, hell it doesn't even need to be finished. I'm brand new to Lua, and honestly took on a task a little too big for me. But, this is moreso about learning than actually having something that works. But.. I want s...