Little math problem :-/ (hopefully not big)

Blitz3D Forums/Blitz3D Programming/Little math problem :-/ (hopefully not big)

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.

Try this doggie ( not tested but should work )

For e = 1 To 35
	ENTITYchase( enemy[e]\pivot , player , 2.0, .5 )
Next

;=============================
;=============================
;=============================

Function ENTITYchase( Entity, Target, TurnRate#, MoveSpeed# )

	Turn# = DeltaYaw( Entity , Target )
	If Turn < - TurnRate Turn = -TurnRate
	If Turn > TurnRate Turn = TurnRate
	TurnEntity entity, 0, Turn, 0
	MoveEntity entity,0,0, MoveSpeed
	
End Function