As some of you know i am in the middle of creating a new point ‘n’ click game right now. But, I have made an inventory system which I think should work. I have an inventory movie clip called ‘inv’ and inside that are inv’s 1-8. On the side of my Flash game, there are 8 dynamic text boxes which at the start of the game, are all labelled 1. The numbers correspond to the inventory boxes. At the start, all the numbers are 1, meaning the inventory boxes are in their first state (empty). These numbers are changed through script. If the number was a number 2, the inventory box would be in it’s second state, for example a crowbar. Here’s the script for it:
It’s simple. That’s all I have on my Global Actions layer. However when I click the crowbar, the inv1cont changes to a number 2, but my inv1 box stays as a blank. Any help?Code:if (inv1cont.text == “1”){ inv.inv1.gotoAndStop(1); } if (inv1cont.text == “2”){ inv.inv1.gotoAndStop(2); }
Goto www.thecomputoguy.wordpress.com for awesome Flash stuff and more!


Reply With Quote


Bookmarks