Hi,
I’m want to have my enemies shoot projectiles at my main character.
The way I’m thinking of how to do that is to calculate a vector using the enemies & my main character’s position and then send a projectile over a straight line according to the calculated vector.
Thing is i have no idea how to do this. It’s been a while since I’ve done some vector math and I wouldn’t no what code to use.
Does anyone have any suggestions for me?
Links to examples, tutorials or explanation of how to code this?