Help with 'attempt to index global a nil value'
Posted: Sun Jun 14, 2015 9:17 am
Hey all,
I'm trying to cap the speed of a moving object moving in my game. I'm very new to Love2d.
I keep getting an "attempt to index global a nil value" every method i try.
I've looked at a lot of forum posts on this topic and i'm having trouble understanding the underlying concept.
Attached is a zip with my code (more than 1 lua file). I'd appreciate any help.
I'm trying to cap the speed of a moving object moving in my game. I'm very new to Love2d.
I keep getting an "attempt to index global a nil value" every method i try.
I've looked at a lot of forum posts on this topic and i'm having trouble understanding the underlying concept.
Attached is a zip with my code (more than 1 lua file). I'd appreciate any help.