How do I create an inventory

Get help using Construct 2

Post » Thu Oct 15, 2015 12:13 pm

Hi guys !

Here's my problem. I'm trying to do a point'n click game and i have to create an inventory for this.

In this inventory, when an item is destroyed ('cause player used it for example), items on the right of the destroyed item have to move left (to fill the hole left by the destroyed item in fact), and i just don't know how to that.

I already trying something with variable (when an inventory object is destroyed, -1 in a variable of others items making them move on the left, but because of all items are concerned, items on the left of the hole left by destroyed item move left too :( ).

So, I hope someone has an idea to making it works well !
Posts: 4
Reputation: 208

Post » Thu Oct 15, 2015 12:24 pm

I would use an Array for this and just redraw the whole inventory based on that..

There is an inventory-tutorial in the tutorial section. ... g-an-array
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
Posts: 6,160
Reputation: 19,775

Post » Thu Oct 15, 2015 5:42 pm

Thanks for the link LittleStain !

Using array seems to be a little difficult for me as a beginner, I hope I'll can handle that ! ^^
Posts: 4
Reputation: 208

Return to How do I....?

Who is online

Users browsing this forum: iftee939 and 8 guests