Function outside loop effecting rotation speed!! ?

BlitzMax Forums/BlitzMax Beginners Area/Function outside loop effecting rotation speed!! ?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Do you mean something like this?
Function generateBalls( num=3 )
		angleinc = 360/num ' How many angles between each ball?
		dist = 100
		tempAngle = 0
		For Local iter:Int = 0 To num
		Local b:ball = New ball
		b.x = BXpos+Sin(tempAngle)*dist
		b.y = BYpos+Cos(tempAngle)*dist
		tempAngle:+angleinc 
		ListAddLast ballList,(b)
		Next
End Function