Hey, guys, this shouldn't be too hard a question, but it's
one that I can't find the answers to.
I want to create an inventory for a game I'm making.
Basically, I want a variable for each item (in possesion, not in
possesion, or lost (will explain later)), and if this variable is
flagged as true (or yes, 1, or some other variant) then show this
graphic. If not, then it won't appear. I don't know if this is a
catch or not, but these things are supposed to be clickable, but
only if they are visible.
Oh, one other catch: One of said inventory items is a
backpack of sorts. If this item is ever missing, I want all other
items to be flagged as "lost" so that they are technically in
possesion, but are not visible and cannot be used.
How can I do all of this? Thanks in advance for any help you
so, in that piece, for every item, make a new one with
another number (1 higher than the last one). The "mc" is the
graphic movieclip. The "have" variable is to say if you got it or
not, and same with lost.
that one makes all the items that you have visible.
&& itemArray.have && !itemArray.lost)
(you need one for every number)
This part (when the mouse is down) checks if the mouse has
touched the movieclip, if you have it, and if it's not lost. If it
fits it all, then it does something.