Hiyas,

I've progressed very far with my game - I can now move soldiers all over my map (which scrolls), and the path finder works perfectly. I'm up to the stage of weapons fire.

How can I move weapons fire from one X,Y point to another X,Y point? (whatever direction, doesn't matter) I want to do it so it moves pixel by pixel, although very quickly.

I was using a loop using the X/Y distance formula, but that used the SQR function, so it was very very slow... =/

I had the idea of maybe using a gradient (Rise/Run), although I'm not sure how to implement it. I've tried to do it, but it failed rather dismally. =(

Can anyone give me some insight? I'd love to get the weapons code written, so then I can start blasting the terrain! *grin* All I need is the basic movement code - I can write the collision detection, BitBlt graphics code, offset info., etc. myself.

Btw, with Loops, if you have a Loop running constantly, does that actually freeze the program, or can you still do stuff while it's doing the loop?

Thanks.

-Git