Hey guys id like to spawn random circles but if i use math.random the balls keep moving around the screen and i want them to be still.
-- Table
-- Use this function to perform your initial setup
function setup()
palla={}
vx=WIDTH/2
vy=HEIGHT/2
u=0
o=0
end
-- This function gets called once every frame
function draw()
-- This sets a dark background color
background(0, 0, 0, 255)
fill(255, 255, 255, 255)
ball(WIDTH/2,HEIGHT/2,64)
for i=0,10 do
palla[i]=ball(math.random(WIDTH),math.random(HEIGHT),16)
end
end
function ball(vx,vy,r)
fill(255, 255, 255, 255)
ellipse(vx,vy,r*2,r*2)
end