Abs with Sin to make Enemy go forward and back?

Blitz3D Forums/Blitz3D Beginners Area/Abs with Sin to make Enemy go forward and back?

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.

Hello.

Ok, it's BlitzMax but easy enough to convert
Strict

Graphics 800,600,0

Local i:Int

While Not KeyDown(KEY_ESCAPE)
	Cls
	i:+1
	i:Mod 360
	If (i>180) Then SetColor 255,255,0 Else SetColor 0,0,255
	DrawOval 100*(Sin(i+90))+400,300,8,8
	Flip
Wend

End


Is that what you mean?

Goodbye.