x


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, 2011 at 09:46 PM

msnowai gravatar image

msnowai
26 13 10 12

(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

-sandhillceltic

more ▼

answered Mar 06, 2013 at 03:18 PM

sandhillceltic gravatar image

sandhillceltic
123 33 47 72

(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

By RSS:

Answers

Answers and Comments

Topics:

x5873
x510
x464
x85

asked: Nov 21, 2011 at 09:46 PM

Seen: 1398 times

Last Updated: Mar 06, 2013 at 03:18 PM