Fast Bullets - going through targets.

Attached Files

The following files have been attached to this tutorial:

.capx

fast-bullets.capx

Download now 174.61 KB

Stats

1,690 visits, 3,534 views

Tools

If I understand it correctly - sometimes when you have a fast moving bullet it can jump through its target and not register it as a hit.

Say your bullet is 5 pixels long but is travelling at 20 pixels a frame and your target happens to be in that gap of 15 pixels ? No hit !

Just been playing with this problem and came up with the idea of firing either

a second longer (and invisible) bullet which would give you a better chance of catching the target

or

altering your bullet to make it have a long empty space trailing behind it but this empty space would still be covered by the collision polygon.

anyway a quick example of the invisible bullet idea.

Please see attached capx

.CAPX

fast-bullets.capx

Download now 174.61 KB
  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!