thisbecasper, on 29 October 2018 - 04:59 AM, said:
Short answer: you modify the zvel member of the projectile sprite.
Long answer: it depends on whether you know what it is being fired at. If you want to simulate auto-aim, then you need the sprite ID of the target, then there is a formula for setting zvel which depends upon distance to target and the forward speed of the projectile.