In my game I need to know if an enemy tank can hit the player if they were to fire at a specific angle.
I've done it so far by using a clone of the normal bullet (the purple bullet in the pictures), setting it's speed really high and checking if it collided with the player.
My problem is that because the game is turn based and these bullets take a few 1/10 second to finish, the game feels sluggish to play.
I thought of using sprites that would curve along the path of the bullet to test collisions, but these sprites would need to be really long and since the enemies can move on walls and ceilings (making the trajectory of the bullet slightly different) I would need a lot of them, so it's not really an option...
So, do you guys know of a way to check if the bullet would hit something that is fast enough so that it doesn't feel sluggish?
Also, if you're interested in the game, you can download the wip version here: https://www.dropbox.com/s/82j3k66qfopqh ... 1.zip?dl=0
Let me know what you think!