Page 2 of 2
Re: TILE GAME!
Posted: Mon Dec 12, 2011 9:39 pm
by nunix
Ah! So I did. I always do that for some reason. -.- Actual error is:
main.lua:12: Incorrect parameter type: expected userdata.
Line 12 is the love.graphics.draw line
Re: TILE GAME!
Posted: Mon Dec 12, 2011 9:50 pm
by bartbes
It's kind of obvious now that I've seen the error, you're passing strings to
love.graphics.draw, which only takes Drawables (that's why I linked it
), you should be using love.graphics.print instead.
Re: TILE GAME!
Posted: Mon Dec 12, 2011 10:41 pm
by Robin
Also, for the future, it might be useful to provide a .love (exactly the way it is as you experience the error) and tell us how you get the error (in this case simply by running it). That way the people that could help you have all the information they need without having to play a back-and-forth game like this one. Here it was really short, but it can get rather long, especially if there are miscommunications involved. Giving us the offending .love makes it a lot easier for everyone.
Re: TILE GAME!
Posted: Mon Dec 12, 2011 11:34 pm
by nunix
bartbes: duhhh. Thanks. This was just sample code from the linked tutorial so it's not mine, so hopefully the person will see this and make the update.
Re: TILE GAME!
Posted: Tue Dec 13, 2011 8:13 am
by kikito
The error seems to be that I wrote love.graphics.draw instead of love.graphics.print.
Please change draw for print, and see how it goes.
Re: TILE GAME!
Posted: Tue Dec 13, 2011 8:15 am
by bartbes
Heh, I see you missed a page there, kikito
.
Re: TILE GAME!
Posted: Tue Dec 13, 2011 8:18 am
by kikito