wehttam2007
Programmer
i made a program to make a pixel move around the screen using a do loop loop like this:
screen 13
do
randomize timer
x = int(rnd * 320)
y = int(rnd * 200)
pset (x,y)
a = int(rnd * 4)
if a = 1 then x = x + 1
if a = 2 then x = x - 1
if a = 3 then y = y + 1
if a = 4 then y = y - 1
cls
loop
that works to make a pixel move around the screen but way way too fast. how can i slow it down?
screen 13
do
randomize timer
x = int(rnd * 320)
y = int(rnd * 200)
pset (x,y)
a = int(rnd * 4)
if a = 1 then x = x + 1
if a = 2 then x = x - 1
if a = 3 then y = y + 1
if a = 4 then y = y - 1
cls
loop
that works to make a pixel move around the screen but way way too fast. how can i slow it down?