how about this:
let's say your gun, cannon or whatever can be rotated 360 degrees. Then at some angle the player may shoot.
Now do this:
let's say your gun, cannon or whatever can be rotated 360 degrees. Then at some angle the player may shoot.
Now do this:
if firebutton force_x#=sin(angle)*speed# force_y#=cos(angle)*speed# bullet_x#=gun_x# bullet_y#=gun_y# endif bullet_x#=bullet_x#+force_x# bullet_y#=bullet_y#+force_y# drawimage bullet, bullet_x#,bullet_y#