# Game Inventory

**URL:** <https://forum.kirupa.com/t/game-inventory/111242>\
**Category:** Uncategorized\
**Created:** [May 25, 2004, 3:59am UTC](https://forum.kirupa.com/t/game-inventory/111242 "2004-05-25T03:59:21Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robman1](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@Robman1](https://forum.kirupa.com/u/Robman1)\
**Post date:** [May 25, 2004, 3:59am UTC](https://forum.kirupa.com/t/game-inventory/111242/1 "2004-05-25T03:59:21Z")

</div>

I am basically a noobie to the actionscript world and I have only touched base with the basics. However I have learned a lot on my own. (I know this isnt much of an accomplishment seein as how the commands _are_ in English) Anyway, to get to the point.  
I am making a basic game where you explore different parts of a school and I am basically making fun of the teachers at my school. The point of the game is to get detentions (maybe) if not I would still need to know how to hold other items the user finds.  
Does anybody know how to do this? I want to be able to click and object and then its in an inventory. Help is appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2004, 11:43am UTC](https://forum.kirupa.com/t/game-inventory/111242/2 "2004-05-26T11:43:12Z")

</div>

Well thanks…I will like to try this out as soon as possible the only problem is my computer has a virus. I’m in school right now and they dont have a flash program. However i have some other questions that maybe people here could be of help to. I’m glad I found this site because it’s hard to find a good flash/actionscript one.  
Anyway, since I can’t test to see that you’re right (BlackSpirit) I will move on to further questions assuming you are correct. Can you use the mouse release action on a movie clip? I want to make an options bar for the game and I want it so that when click it expands and the border of one of the symbols with in it dissappears. Also if anybody knows of any other ways to do an inventory it may help because I can’t test to see if this one is a definite yes.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2004, 12:11pm UTC](https://forum.kirupa.com/t/game-inventory/111242/3 "2004-05-26T12:11:50Z")

</div>

BlackSpirit I have a questioin. Suppose this is correct, your actionscript I mean. Could the user acess a screen showing the items added to the inventory? Also once you click this item, how do you make it dissappear so that the movie clip is only in the array, not in the main game? -btw I have figured out just by your script that i am a true noobie…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2004, 8:47pm UTC](https://forum.kirupa.com/t/game-inventory/111242/4 "2004-05-26T20:47:21Z")

</div>

maybe you should start with an easier game just to learn

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 26, 2004, 8:54pm UTC](https://forum.kirupa.com/t/game-inventory/111242/5 "2004-05-26T20:54:02Z")

</div>

[http://www.kirupaforum.com/forums/showthread.php?t=54066](http://www.kirupaforum.com/forums/showthread.php?t=54066)

there

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2004, 1:58am UTC](https://forum.kirupa.com/t/game-inventory/111242/6 "2004-05-28T01:58:48Z")

</div>

BlackSpirit, the code doesnt work but thanks neway.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2004, 3:36am UTC](https://forum.kirupa.com/t/game-inventory/111242/7 "2004-05-28T03:36:57Z")

</div>

ok i think i figured it out by myself. but its not complex or efficient. im using \_visible to make the objects visible once the player presses the button. same with the inventory screen…now all i need is that menu

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2004, 11:08am UTC](https://forum.kirupa.com/t/game-inventory/111242/8 "2004-05-28T11:08:47Z")

</div>

yeah u could use \_visble lol id probaly recommend unloadmovieclip i think if have questions like that u should just read through the action script dictionary in the help section of flash itselfs very useful

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 28, 2004, 11:38am UTC](https://forum.kirupa.com/t/game-inventory/111242/9 "2004-05-28T11:38:29Z")

</div>

yea i have done that but sometimes the wording is not what im looking for, yet later i find that it was what i needed. i dont think macromedia did very well in their help and tutorial sections. but about the unloadmovieclip, do u need to use loadmovieclip first or can u just movie it onto the screen?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2004, 6:34am UTC](https://forum.kirupa.com/t/game-inventory/111242/10 "2004-05-29T06:34:33Z")

</div>

Here, I uploaded an inventory I made up, graphics are non existant, but its the code that matters.  
Clicking on the circles add them to the inventory, clicking on the items in the inventory put them to "ground"  
Uses attachmovie, so no need to duplicate items from off screen, uses removemovieclip as well. So it’ll keep the speed up.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2004, 6:41am UTC](https://forum.kirupa.com/t/game-inventory/111242/11 "2004-05-29T06:41:02Z")

</div>

ok thanks ill check it out

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2004, 6:46am UTC](https://forum.kirupa.com/t/game-inventory/111242/12 "2004-05-29T06:46:25Z")

</div>

yea i have been using \_visible but my game is starting to slow down in some areas so once i read ur script it may clarify much of what i know

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2004, 6:48am UTC](https://forum.kirupa.com/t/game-inventory/111242/13 "2004-05-29T06:48:23Z")

</div>

its not letting me download

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2004, 6:52am UTC](https://forum.kirupa.com/t/game-inventory/111242/14 "2004-05-29T06:52:22Z")

</div>

wierd, I just downloaded it. Works fine.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2004, 6:58am UTC](https://forum.kirupa.com/t/game-inventory/111242/15 "2004-05-29T06:58:16Z")

</div>

not me it gives me a false download place cant u put it on a site or something? well whatever ill keep trying

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2004, 6:59am UTC](https://forum.kirupa.com/t/game-inventory/111242/16 "2004-05-29T06:59:41Z")

</div>

nvm its all cleared up. i didnt know u had to rename it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2004, 7:04am UTC](https://forum.kirupa.com/t/game-inventory/111242/17 "2004-05-29T07:04:04Z")

</div>

rename it? I just rightcliked and saved target as…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2004, 7:07am UTC](https://forum.kirupa.com/t/game-inventory/111242/18 "2004-05-29T07:07:42Z")

</div>

ok im looking at ur script and u have a couple things to explain, sorry. do u have aim? cuz i never understood this i stuff and i just need to learn what this stuff is

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2004, 7:29am UTC](https://forum.kirupa.com/t/game-inventory/111242/19 "2004-05-29T07:29:43Z")

</div>

nah, dont have aim. got messenger though.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 29, 2004, 7:36am UTC](https://forum.kirupa.com/t/game-inventory/111242/20 "2004-05-29T07:36:36Z")

</div>

just list the things you dont understand and ill talk you through. I should have put more comments in my code. Commenting is kinda boring 🙂

[Next page](https://forum.kirupa.com/t/game-inventory/111242.md?page=2)
