Hi, I'm a bit stumped. I'm trying to find out a way to make a bullet fly from a spaceship.
So far, I managed to make it work but it attaches onto the coord's of my ship image(I used the position of this to map the starting position of my bullet). The problem with this is if I shoot and turn left/right while the bullet is still in the screen, it follows me.
How can I make the bullet a separate entity from the ship and somehow get the coords at the same time? I have bullets as a separate object etc.
I just can't think of a way to calculate the position of the bullet, without using the position of the ship! Or is there some way I can create a new trajectory AFTER the bullet is visible?
Don't really think I need to post code as it is not really a coding problem, more of a logical block. ha.
Edited 5 Years Ago by Akill10: n/a