Fast Bullets - going through targets.

1

Attached Files

The following files have been attached to this tutorial:

.capx

fast-bullets.capx

Download now 174.61 KB

Stats

2,599 visits, 4,696 views

Tools

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

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!