The Dink Network

Reply to Shoot in any direction (almost)

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
June 25th 2012, 04:22 AM
dinkdead.gif
This will be pretty similar to an enemy shoot script I guess...

If I know the angle I want to shoot at (and the x/y I'm shooting from of course), how do I work out the move_x/move_y?
Or Someone's way of looping in the missile script.

I have 32 different directions, so multiples of 11.25°

I've been trying trigonometry for a while until my head hurts, now I just feel thick

Edit:
I guess if I have fixed directions in which to shoot I could just hardcode the values... but regardless, this would be useful.