Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

+ Reply to Thread
Results 1 to 2 of 2

Thread: Inventory Help

  1. #1

    Angry Inventory Help

    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:
    Code:
    if (inv1cont.text == “1”){
    inv.inv1.gotoAndStop(1);
    }
    
    if (inv1cont.text == “2”){
    inv.inv1.gotoAndStop(2);
    }
    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?

    Goto www.thecomputoguy.wordpress.com for awesome Flash stuff and more!

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2
    Join Date
    Jun 2009
    Location
    Houston, Tx
    Posts
    485

    Default

    lol um.. That's such little code for what it should be doing...
    Do you have any more code that I can see?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial