Free ActionScript
Home
AS3 Scripts
AS2 Scripts
Resources
About
Contact
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
Update Newer, better weapon script is available here: http://www.freeactionscript.com/2011/08/advanced-weapon-system/
After months and months of trying to figure this one out, I finally managed to build a fully working example!
So, here is the first version of my Simple Physics script – multiple balls colliding and bouncing off each other.
I have to give credit to a book called HTML5 Canvas by Steve Fulton & Jeff Fulton (great book!). It was very hard to grasp the law of conservation of momentum without it. Thanks guys!
My latest AS3 Game Inventory System.
Features
Drag, drop and snap
Create/destroy inventory containers
Create/destroy level containers
Move items between different movieclip containers
Create/destroy items in level
Create/destory items in inventory – new
Find empty inventory slot – new
Added item selected/diselected state – new
Added slot full/empty state – new
Code optimization and more comments – new
Preview – v1.1.2
Stackable Items – items of the same type can be placed in the same slot
Auto-pickup item – items placed in bag automatically, if bag has space
Multiple Level containers – different game levels
Multiple Inventory containers – bag, bank, store
Destroy items
Sell items
Show Item Tooltips
Bug Fixes v1.1.2
Fixed bug when releasing mouse over item, while holding nothing – Thanks 19greg96!
v1.1.1
Fixed “slot full” bug after removing item from slot – Thanks 19greg96!
Fixed publishing issue for Flash Player 10
AS2 Older AS2 version is available here: http://www.freeactionscript.com/2008/11/drag-drop-snap-inventory-system-v2/
Enemy Manager code that handles basic enemy functions:
Create Enemy
Update Enemy
Get Closest Enemy
Destroy Enemy
Update – Version 1.1.0 Refactored code to be OOP
Page 2 of 25
AS3 Effects
AS3 Gadgets
Game Examples AS2 Effects Animated Effects Dynamic Enemy AI Game Engine Game Weapons Images Interface Math Security
Effects Animated
Effects Dynamic
Enemy AI
Game Engine
Game Weapons
Images
Interface
Math
Security
Game Examples AS3 Basics Bitmap Blitting Collision Detection Enemy AI Movement Physics Space Shooter User Interface Weapon System
Basics
Bitmap Blitting
Collision Detection
Movement
Physics
Space Shooter
User Interface
Weapon System
Site Updates
718Hosting.com
Actionscript.org Forums
Flash Game Blogs
Flash Game License
Flashkit Forums
gotoAndLearn
IndieGames.com
Kirupa’s Tutorials
Kongregate Forums
MochiAds Resources
Philip Radvan
Photon Storm
Polygonal
Radvan Media
Tonypa’s Tutorials
Register
Log in
Entries RSS
Comments RSS
WordPress.org