Search found 2 matches
- Sat Mar 30, 2019 6:43 pm
- Forum: Support and Development
- Topic: Drawing rectangle and table problem
- Replies: 5
- Views: 4446
Re: Drawing rectangle and table problem
Well, I found a way, deleting every other values in table : for i, v in ipairs(s) do table.remove(s,i+1) love.graphics.rectangle( "line",v.x,v.y,love.mouse.getX()-v.x,love.mouse.getY()-v.y) The goal was to make basic mouse rectangle selection, full code : (its working nice) s={} function l...
- Sat Mar 30, 2019 1:07 pm
- Forum: Support and Development
- Topic: Drawing rectangle and table problem
- Replies: 5
- Views: 4446
Drawing rectangle and table problem
Hi, I'm new and really enjoy trying making game with love but I have some problem : I have a s table wich contains table which x,y coordinate for drawing rectangle when I click mousebutton. I can draw them all with ipairs loop (and it's working nice) but I want draw only the first one, how can I mak...