How to make Inventory?

I’m making a survival game and how do I make it where the player can switch through each item and use one of them?

1 Like


try this :slight_smile:

This is the advanced version

The example page is a great way to learn, make sure to always check it out if you need to do something because it might have what you’re looking for.

1 Like

wow code alpaca. i feel inferior now

2 Likes

Those were made by JR01, not me. I just gave the link

2 Likes

still… you supplied a whole game while i gave a little code

1 Like

drama :skull:
But yea, both examples r good, the first one just doesn’t really have UI (sry pal)

2 Likes

well the button click is just an example for a trigger. you could use clicking on another sprite or other things for the trigger instead. i simply put the basic “in between” code that he asked for, while he can put the results anywhere he wants.

1 Like

or her

okee jeez
*el backs off *

1 Like

XD sry i am defensive lots and can whip up a good argument very quickly

1 Like

Well that’s all good I need it so you can switch to a axe and then a gun without still having the axe

1 Like

Switches. Just press 1 for example to get the gun out, then press 2 to get the axe out. If you need to pick these items up/drop them just use Switches.

1 Like