Search found 2 matches

by helloyyy
Sat Mar 30, 2019 6:43 pm
Forum: Support and Development
Topic: Drawing rectangle and table problem
Replies: 5
Views: 4269

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...
by helloyyy
Sat Mar 30, 2019 1:07 pm
Forum: Support and Development
Topic: Drawing rectangle and table problem
Replies: 5
Views: 4269

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...