Free ActionScript
Home
AS3 Scripts
AS2 Scripts
Resources
About
Contact
Drag, drop and snap inventory system for Flash games written in ActionScript 2.0.
I updated the previous version of my drag drop and snap inventory system to make it easier to understand. Added the ability to create new dragable items as objects. Also cleaned up & commented all the code. Features
Slots Array
Create new Draggable Items
Drag & Drop Items
Dropped Items snap to Slot
Each Item stores Slot info
Each Slot stores Item info
Return to previous position if current slot is full
Drag, Drop & Snap Inventory System Sample v2
Download Fla Sample
Update: AS3 version of my inventory system is available here:
http://www.freeactionscript.com/2010/11/drag-drop-and-snap-inventory-system/
hey this is great, helped me alot with my assignment at uni, though i did a trace on ur items_array.push(_items), its not actualy doing anthing, as when i traced the array element, they came up as undefined. do u know how to fix that?
never mind i found out why,
you didnt declare it as a new array, it works if u put var items_array:Array = new Array
thx neway:)
thank you for catching that error Voids
just wanted to ask if you know how to take the item out of the inventory and give it to a character? using as2?
hey man, that’s almost what I was looking for, but I need to make two diferent inventories and have some of the items go just to one of them, some to the other, and some items could go to either one, I’m not a programmer, and I can’t figure out how to make it work. If you could help me I’ll thank you forever.
Can you make an inventory where you use a player that will touch the item and that item will go to the inventory?
You must be logged in to post a comment.
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