Quads limited to 5?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Dallox
Prole
Posts: 16
Joined: Sun Mar 11, 2012 7:16 pm
Location: Netherlands

Quads limited to 5?

Post by Dallox »

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.
Attachments
BattleX.love
(2.59 MiB) Downloaded 80 times
User avatar
tentus
Inner party member
Posts: 1060
Joined: Sun Oct 31, 2010 7:56 pm
Location: Appalachia
Contact:

Re: Quads limited to 5?

Post by tentus »

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
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 143 guests