vectoradd
Posted: Sat Oct 18, 2003 9:04 am
This code:
angle = -(ship.animpos/ship.nframes)*360.0 + 90;
diretional_velocity = shot_speed;
...is in the create actor action for the shot.
It works fine when the ship is standing still.
The problem occurs when the ship travels faster. The bullets come out slower and eventually fall behind the ship.
How do I add the directional velocity of the ship to the shot?
angle = -(ship.animpos/ship.nframes)*360.0 + 90;
diretional_velocity = shot_speed;
...is in the create actor action for the shot.
It works fine when the ship is standing still.
The problem occurs when the ship travels faster. The bullets come out slower and eventually fall behind the ship.
How do I add the directional velocity of the ship to the shot?