Back to Browse

Macromedia Flash Pro 8 Game Tutorial 3 : Inventory System

18.4K views
Jul 18, 2008
8:45

Items Code: onClipEvent(enterFrame) { if(_root.char.hitTest(this)) { _root.addToSlot(this); } } Inventory Code (Put In Frame): 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++; } } Itemslot Instance Names: itemslot1 itemslot2 itemslot3 etc.

Download

0 formats

No download links available.

Macromedia Flash Pro 8 Game Tutorial 3 : Inventory System | NatokHD