Free ActionScript

Flash AS2 & AS3 Tutorials, Game Code, Effects, Source Files & Sample Downloads

Projectile Weapon – Multi Barrel

1 Comment »

A brand new AS3 multiple barrel weapon system written using OOP.

Available Settings

  • Number of Weapons – create multiple weapon platforms
  • Number of Barrels – each weapon platform can have multiple barrels
  • Weapon Rotation Speed – how fast the weapon rotates
  • 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 barrel does the bullet starts
  • Bullet Spread – how accurate does the bullet fly towards target
  • Collision Detection – detect and respond to bullet collisions

Please note that this is the first version. It can be tweaked and optimized.

Preview

Download Fla Sample

Download Fla Sample

Update
Newer, better weapon script is available here:
http://www.freeactionscript.com/2011/08/advanced-weapon-system/

One Response

Wow! Thank you very much for that great little shooting example! Keep up the great work!:)

  • Leave a Reply

    You must be logged in to post a comment.