AS3 update to my AS2 projectile weapon script. Features click-to-shoot (machine gun), collision detection, bullet gravity.
- Bullet Speed – how fast the bullet travels
- Max Distance – how far the bullet can go before dying
- Reload Speed – how long it takes to reload the weapon
- Barrel Length – how far from player does the bullet starts
- Bullet Spread – how accurate does the bullet fly towards target
- Gravity – gravity on/off
Advanced multi-barrel OOP version of this weapon script is now available here: