PDA

View Full Version : escape inventory question


red_museum
07-14-2009, 11:11 PM
I am sorry, because this has almost definitely been asked before, but I searched your forum and couldn't find the answer to my question. It would be one of those 'escape' games I can see D:

I am in the process of making a first-person point and click game. I have a very clear and precise idea of what I want and the setup would be very, very simple. Basically I would like to make a boneheaded inventory system, whereas the player would click an item, and for it to appear in an inventory box below.

I have arranged my items into movieclips, and want the items to be 'pushed' with the on (release) { command - so the item does not reappear. The items must appear in the inventory's slots and in the order they are taken. eg. if there is a key, a hammer and a glass, taking the glass would push it into inventoryclip1, not 3.

The game also has to have be navigated, whereas the player may move from one room to another. These rooms are going to be animated, so I want to use different scenes for each room or landscape. Would it make sense to write arrays, and variables that rely on these arrays, to determine the movieclips within the scene, to stop the data from being lost if I moved from one scene to another? Or can I do something where I 'remind' the inventory each time as the player goes from scene to scene? I know there are multiple ways of doing this.

I know this is dreadfully simple, but I am not a clever man. Please direct me to the right tutorials, previous threads, and the nearest office of MENSA. Thanks. R

bluemagica
07-15-2009, 01:02 AM
try out this: http://www.freeactionscript.com/2008/08/drag-drop-snap-inventory-system/
(the V2 is linked there, but it would be better for you if you understand the V1 first)!

red_museum
07-15-2009, 01:47 AM
Hello bluemagica! Thanks for the link, there are lots of tutorials there and some good scripts to use. I... don't see how your link is relevant to my question, as I was asking about the onrelease command and not the drag n drop, but I will make the best use of the resource I can. Thanks!

bluemagica
07-15-2009, 02:19 AM
That script just contains more stuff than you asked for....just cut out the drag and drop portion of the code....if you understand, it's easy!

red_museum
07-15-2009, 06:49 PM
Okay, thanks for your help :)