How to make a simple inventory?!? Beginner coder JS

Hello all,

I am very new to Unity and coding. I want to make a simple inventory where a user clicks a item and it shows up in the inventory.

Right now I have a menu bar on the bottom of the screen that has different buttons the user can click. One of the buttons is for the inventory and when clicked on a box pops up with a grid of buttons on it.

During game play the user will be able to pick up a key and different bottles. For them to pick it up they have to press 'e'.

So my logic is to:

Make a array of items;
      if the users presses 'e'{
               call destroy item;
               load up 2d image of item on one of the buttons on the grid for inventory;}

Please help!!!

more ▼

asked Nov 21 '11 at 09:46 PM

msnowai gravatar image

26 5 5 7

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Hey I posted the same question, Ill post the reply in here if it helps you


more ▼

answered Mar 06 '13 at 03:18 PM

sandhillceltic gravatar image

103 7 17 23

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: Nov 21 '11 at 09:46 PM

Seen: 1179 times

Last Updated: Mar 06 '13 at 03:18 PM