Search Tutorials
Action script in frame Note: This will create an inventory system in Flash movie frame one . You can move the inventory system anywhere in your flash movie by editing the code .
Copy these code to your Flash movie , frame one .
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++;
}
}
Note: "itemSlot" + currentslotnum : will be the Movie Clip name which store the item . So if you wish to change the Movie Clip name , please change the "itemSlot" as well same with the Movie Clip name .
|
|||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||
|