Function outside loop effecting rotation speed!! ?

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

The Forum Archive is locked. These are the original blitzbasic.com forums, kept so their posts can still be read and searched. No new topics, replies or edits can be made here. To join the conversation, 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