"Checking distance won't work for projectile weapons. Especially slow moving ones. What if: Something moved into the path of the projectile, this would be the new collision distance."
Erm DT is a complete distance check

no DB collision code and guess how im detecting bullets?.
You would isolate what the bullets can or cant hit with a loop in your distance check.
anything that doesnt need to be hit with the bullet like game sprites that add visuals are not in the code loop.
Calculating the angle of the bullet in code also allows u to spin it around as it flys out of the player.
the essence of a good bullet script
make the bullets
hide the bullets
store the bullets off the game world like Y -10000
when the player fires the button
move a bullet to the player location
rotate the bullet to the same angle direction as the player
make the bullet move forward in move units or math based moving positions
after a certain time is reached move the bullet off the game world
hide it
repeat process
indi is part of Team Lunarpixel
multimedia logisitics and interactive media