Back to Browse

Flash Professional CS3 Tutorial 2 : Creating An Inventory

4.5K views
Aug 31, 2008
6:42

Put On Item: onClipEvent(enterFrame) { if(_root.char.hitTest(this)) { _root.addToSlot(this); } } Put On 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++; } } Instance Name For Fred: char --------------------------------------- Please Rate, Comment and Subscribe

Download

0 formats

No download links available.

Flash Professional CS3 Tutorial 2 : Creating An Inventory | NatokHD