Expected ImageData got nil
Posted: Thu Dec 22, 2016 9:01 am
Hello forums!
I've been using Love2d for a little bit in order to create a prototype for a game. I'm trying to make a sprite loader, mostly based on the code on Build and Gun here: http://www.buildandgun.com/2014/07/anim ... ove2d.html
I've had to play around with my code and have probably messed up syntax somewhere, but the issue at the moment is that I keep getting an error about love.graphics.newImage expecting ImageData and receiving nil (it's receiving nil because I'm only trying to define the function, not use it at the moment).
I'll attach the Game file and the sprite loading file, maybe someone could help me out?
Thanks in advance, and I'm sorry if this has been asked about already. I've searched and come up empty, but I could've missed something.
I've been using Love2d for a little bit in order to create a prototype for a game. I'm trying to make a sprite loader, mostly based on the code on Build and Gun here: http://www.buildandgun.com/2014/07/anim ... ove2d.html
I've had to play around with my code and have probably messed up syntax somewhere, but the issue at the moment is that I keep getting an error about love.graphics.newImage expecting ImageData and receiving nil (it's receiving nil because I'm only trying to define the function, not use it at the moment).
I'll attach the Game file and the sprite loading file, maybe someone could help me out?
Thanks in advance, and I'm sorry if this has been asked about already. I've searched and come up empty, but I could've missed something.