How do I make a real container [for a game]

Get help using Construct 2

Post » Thu Dec 17, 2015 10:43 pm

for my game i want to make a container i can put things in. and take it out [in-game wise]
i tried the container thing for an object till i read the container help page... thats when i found out what the container is actually for...

so thats where the real comes in:

how do i make a real container not the container that is used to make different objects
B
5
Posts: 11
Reputation: 247

Post » Thu Dec 17, 2015 11:02 pm

Do you mean like an inventory system?
B
43
S
13
G
59
Posts: 1,779
Reputation: 35,731

Post » Thu Dec 17, 2015 11:06 pm

plinkie wrote:Do you mean like an inventory system?

no..... a inventory stores things the player has... a container is an object that stores objects in it like a fridge is a type a container it has food inside... which like a container


something like that anyway
B
5
Posts: 11
Reputation: 247

Post » Fri Dec 18, 2015 1:47 pm

What are you looking to use it for?
B
43
S
13
G
59
Posts: 1,779
Reputation: 35,731

Post » Fri Dec 18, 2015 2:53 pm

Well the container would have the inventory just like the player, too. There are a number of tutorials on the website about inventories. A simple inventory would be an array that holds UIDs of all of the items in it.
Banned User
B
6
S
3
Posts: 105
Reputation: 1,170

Post » Fri Dec 18, 2015 3:14 pm

It sounds like he's talking about the container datatype from common code and trying to find it in C2, I guess it's a Family? A fridge family contains many foods! : D Just depends what he wants to do with it, an array might serve the purpose.
B
43
S
13
G
59
Posts: 1,779
Reputation: 35,731


Return to How do I....?

Who is online

Users browsing this forum: Phoenixbowman, raulcg1981 and 12 guests