function additem(obj) {
_root.obj.found = true;
_root.hud.eval("slot"+_root.slotnum).gotoAndPlay(obj);
_root.slotnum++;
}
thats what i have on first frame of my game
and its called when i click on an item
the item’s coding would look like this
on (press) {
_root.additem("ring")
}
theres a movie clip with an instance name “hud” with other movieclips inside it (“slot1” “slot2” etc… etc…)
the slots have labels in it that will determine what items there are
so for “ring” there will be a button with an icon of a ring in it at that label with a stop() command
but it won’t work for me