How do I make an inventory slot stock up items?

Just started using Construct 2? Post your questions here

Post » Sun Mar 20, 2016 1:16 pm

Message: xDelta7 can only post plain text URLS until they have 500 rep. 3 URLS modified. Why?
I´ve created this inventory using a tutorial. If anyone knows how to make a slot stock up more of the same item and then display it under it, please tell me how to do that
Even sheet: http://prnt.sc/ahlxlx
Inventory slot instance variables: http://prnt.sc/ahm0km
Gold Drop instance variable: http://prnt.sc/ahm0m6
B
2
Posts: 4
Reputation: 158

Post » Sun Mar 20, 2016 1:23 pm

Can we get a capx please?
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
50
S
24
G
30
Posts: 519
Reputation: 19,563

Post » Sun Mar 20, 2016 1:24 pm

Message: xDelta7 can only post plain text URLS until they have 500 rep. 2 URLS modified. Why?
Actually here´s the tutorial link and you can get the .capx there. It´s all the same in my project and my project is like 30 mb´s big

Tutorial: https://www.scirra.com/tutorials/985/how -to -make -inventory -without -arrays
-remove the spacing in the link
.capx: https://www.dropbox.com/home?preview=eqexample(1).capx
B
2
Posts: 4
Reputation: 158

Post » Sun Mar 20, 2016 2:24 pm

I've got an example almost working to a t (95%) but did you want items to be able to stack more than once in a slot? I.e, for picking up multiple apples, ore, etc.
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
50
S
24
G
30
Posts: 519
Reputation: 19,563

Post » Sun Mar 20, 2016 2:27 pm

https://www.scirra.com/tutorials/583/ea ... g-an-array

Here is an easy inv done using arrays, This is more what i think you are asking for.
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,378

Post » Sun Mar 20, 2016 3:37 pm

I don't wan't to work with arrays.
And yeah LaDestitute, I want to make the items to be able to stack up more than once in a slot.
B
2
Posts: 4
Reputation: 158

Post » Sun Mar 20, 2016 4:06 pm

xDelta7 i know how you might feel about arrays. They are hard to grasp at first, I have been using construct for awhile and still dont know everything about them.

As a game developer you should atleast try to learn them in your spare time since it will undoubtedly save you time doing inventory systems , World generation and much more.

You dont have to use the tutorial i posted but it will give you the proper place to start when you are ready.
Good luck with your project keep us all posted!
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,378

Post » Sun Mar 20, 2016 4:16 pm

I´ve been using construct for 2 months now and I know how to do everything else that my game needs except the inventory system, and I can´t move any further without making it first. Already created the sprites and animated them, figured out a simple crafting system and other stuff.. But this inventory just makes me wanna quit everything so bad bcuz when I look at arrays my mind is like "this looks weird, I wonna go do something else with my life.." and I just can´t force myself to concentrate on that :/

Btw this is not my real scirra account. I´m having some issues with my passwords sync and I don´t feel like fixing that today.
B
2
Posts: 4
Reputation: 158

Post » Mon Mar 21, 2016 8:53 am

Don't be afraid of arrays! They are basically just spreadsheets of data. Extremely useful.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458


Return to Beginner's Questions

Who is online

Users browsing this forum: shawnzien and 2 guests