Hey guys,
what im doing is making an inventory system. So far its working and iv got 6 slots and when my character walks over an item it goes into a slot. thats all gud. but what i need now is that when the item goes into the slot i can click on the item once its in the slot but i cant click on it when its on the playng field. I dont know if this makes much sense but if it does and you know how to help heres the code..
ITEM SLOTS CODE:
CODE
currentslotnum = 1;
stop();
function addToSlot(item) {
if(!item.found) {
item._x = eval ("itemSlot" + currentslotnum)._x;
item._y = eval ("itemSlot" + currentslotnum)._y;
item.found=true;
currentslotnum++;
}
}
ITEMS CODE:
[code]onClipEvent(enterFrame) {
if(_root.char.hitTest(this)) {
_root.addToSlot(this);
}
} [code]
Thanks in advance