
-----------------------------------
xHoly-Divinity
Thu Dec 02, 2004 5:41 pm

Duplicating procedures &amp; redrawing it x amount of times
-----------------------------------

proc a (x, y : int)
    drawfilloval (100 + x, 100 + y, 10, 10, black)
end a
var b : int
get b


What I am trying to do is when the user inputs b, run procedure 'a' 'b' amount of times at a different location (x+10). Is this at all possible, and if it is please send an example.

-----------------------------------
Cervantes
Thu Dec 02, 2004 6:14 pm


-----------------------------------

var b : int
get b
proc a (x, y : int)
    drawfilloval (100 + x, 100 + y, 10, 10, black)
end a
for i : 1 .. b * 10 by 10
    a (10 + i, 20 + i)
end for

Somehing like that?
