After command?

BlitzMax Forums/BlitzMax Beginners Area/After command?

flounder22001(Posted 2006) [#1]
i just moved over from B3D and i need to use the after command to loop through some types, and no i can't use a for next loop for this. is there any way to create an after command or simulate it?


Gabriel(Posted 2006) [#2]
http://www.blitzbasic.com/Community/posts.php?topic=50285

-


flounder22001(Posted 2006) [#3]
thanks! works great now.

However i have moved on to another problem: whenever i use Rand() its gives me an identifier not found error.
here's the snippet i'm using it in:
Local i:Int
For i=0 To 10
	Local mass:Int
	mass=Rand(5,20)
	circle.Create(Rand(0,800),Rand(0,600),0,0,.99,.99,mass*2.0,mass)
Next

the SeedRnd function doesn't work as well. As far as examples and searching goes, i'm under the assumption i don't need to import anything or do anything special, so can anyone tell me if i'm doing anything wrong?


tonyg(Posted 2006) [#4]
This works fine for me on 1.14...
SeedRnd MilliSecs()
Local i:Int
For i=0 To 10
	Local mass:Int
	mass=Rand(5,20)
	Print mass
Next