Search found 5 matches

by duhspbr
Tue Oct 22, 2019 2:48 pm
Forum: General
Topic: Draw function deleting objects after the end of the loop.
Replies: 2
Views: 3174

Re: Draw function deleting objects after the end of the loop.

Man! I found the error! In my example, I declared in a different way this part: function love.draw() local i = 1 while i <= num_obj do love.graphics.rectangle("fill", posX[i], posY[i], 15, 15) i = i + 1 end end I forgot about the local variable! In my original code, I have declared out of ...
by duhspbr
Tue Oct 22, 2019 5:15 am
Forum: General
Topic: Draw function deleting objects after the end of the loop.
Replies: 2
Views: 3174

Draw function deleting objects after the end of the loop.

Hello Lovers! I'm having a lot of headaches with this seemingly simple code. I'm having difficulty in this line of the code: draw section when I try to draw, something like function love.draw() love.graphics.rectangle("fill", player.posX, player.posY, 15, 15) love.graphics.rectangle("...
by duhspbr
Thu Nov 24, 2016 12:31 pm
Forum: Support and Development
Topic: How to paint without redraw.
Replies: 9
Views: 6945

Re: How to paint without redraw.

What's your problem guys? I've never seen such supportive support! Out of this world!

I got both examples and I solved the problem here!

Thank you all very much! I'm loving the community and language!

Just Love!
by duhspbr
Thu Nov 24, 2016 11:04 am
Forum: Support and Development
Topic: How to paint without redraw.
Replies: 9
Views: 6945

Re: How to paint without redraw.

Maybe I was not very clear with the example, I apologize. Another example to simulate the effect that I mentioned: When we draw in ms paint, we click with the mouse button and drag right? But instead he wanted the square to paint the screen. The problem is that in my example, with each frame the squ...
by duhspbr
Tue Nov 22, 2016 7:17 pm
Forum: Support and Development
Topic: How to paint without redraw.
Replies: 9
Views: 6945

How to paint without redraw.

Hello Guys! I would like to know how to create a new circle without having to redraw it. For example, it moves to the left using the code I posted below, however I do not want it to redraw with a new coordinate, but rather keep the previous one but generating successively a "trace." Thank ...