sinus/cosinus shoot

BlitzMax Forums/BlitzMax Programming/sinus/cosinus shoot

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.

Hi !

How to do this ? When the player shoot, the bullet follow this kind of path. i'm searching a formulae to do this ! Thanks for your help !

Graphics 640,480
y=480
initialx=320
xw#=4
While y>0
	y:-1
	a:+4
	xw#:+0.25
	x=initialx+Sin(a)*xw
	Plot x,y
Wend
Flip
WaitKey


Thanks Chris !