sinus/cosinus shoot

BlitzMax Forums/BlitzMax Programming/sinus/cosinus shoot

hub(Posted 2006) [#1]
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 !


Chris C(Posted 2006) [#2]
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



hub(Posted 2006) [#3]
Thanks Chris !