Drag Drop & Snap Inventory System v2

Monday, November 3rd, 2008 | Game Examples AS2, Interface

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

Download Fla Sample


Tags: , , , , , , , , , , , , , ,

3 Comments to Drag Drop & Snap Inventory System v2

Voids
October 6, 2009

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?

Voids
October 6, 2009

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:)

pradvan
October 6, 2009

thank you for catching that error Voids :)

Leave a comment

You must be logged in to post a comment.