One function to draw a lot of circles? On what basis are drawn bullets?
P#37883 2017-02-27 16:00 ( Edited 2017-03-10 10:55)
:: Owlondrugs
No, I'm creating a function, but it draws a circle once and clean, but I need to circle all remained.
P#37970 2017-03-01 11:58 ( Edited 2017-03-01 16:58)
:: Owlondrugs
Just a code consisting only of circ (), circ (), circ() - stupid.
P#37971 2017-03-01 12:01 ( Edited 2017-03-01 17:01)
:: Owlondrugs
may be to create an array and store the coordinates there ...
P#37972 2017-03-01 12:01 ( Edited 2017-03-01 17:01)
:: gcentauri
function random_circles(number)
for i=1, number do
circ( rnd(127), rnd(127), 10)
end
end
|
Something like that? If you want the circles to be able to move like bullets you need to make a data structure to keep track of each circle's data.
P#38126 2017-03-09 21:48 ( Edited 2017-03-10 02:48)
[Please log in to post a comment]



