360 shooter.... scrolling background

BlitzMax Forums/BlitzMax Beginners Area/360 shooter.... scrolling background

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.

Your enemy must be going outside the radius, try changing the -2 to something greater.

Also I found that I needed to set orbit in the chase bit too:

If dist >= radius			
	dx:/dist * acceleration
	dy:/dist * acceleration
	orbit = rotation + 90
Else
	dx = dx+Cos(n)*(radius - 2)
	dy = dy+Sin(n)*(radius - 2)
	orbit :+1		
EndIf