Hey, I tried the tile tutorail and starting to use it in my code, but i have alil problem: i use 5 quads (love.graphics.newQuad) It seems to work just fine, but when i use 6 quads there shows a weird error:
Error menu.lua:9: Incoorect parameter type: expected userdata.
Traceback [C]: in function 'drawq'
menu.lua:9: in function 'draw'
[C]: in function 'xpcall'
Menu line 9 is this:
love.graphics.drawq(Tileset, Quads[number], x, y)
I assume it has something to do with the quads cause when i delete the sixth one from the tile map and the 6th quad it will load.
I tried to copy the other quads to see if i miss spelld something, but this is not the case.
Quads limited to 5?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Quads limited to 5?
- Attachments
-
- BattleX.love
- (2.59 MiB) Downloaded 80 times
- tentus
- Inner party member
- Posts: 1060
- Joined: Sun Oct 31, 2010 7:56 pm
- Location: Appalachia
- Contact:
Re: Quads limited to 5?
I didn't spot the error right away, but I can tell you right now: you're doing it wrong. love.draw should only be defined once, ever. My advice to you is to read up on gamestates, we've had tons of threads about it on these forums.
Kurosuke needs beta testers
Who is online
Users browsing this forum: Google [Bot] and 143 guests