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.

Ahh, Now theres something new learned. I've modified the code and it works. Thanks. :)

One quick question.

I've modified the generateballs function to create more balls. I want the balls to be created in a circle according to the position set for the angle in sin/cos. Am I on the right track because it doesn't appear to be working. Code below:

	Function generateBalls()
		
		dist = 100
		tempAngle = 0
		For Local iter:Int = 0 To 3
		Local b:ball = New ball
		b.x = BXpos+Sin(tempAngle)*dist
		b.y = BYpos+Cos(tempAngle)*dist
		tempAngle:+32
		ListAddLast ballList,(b)
		Next
				
	End Function


Imagine a ring of balls. Thats what I'm trying to create for a weopan.