0 Favourites

# How I do the grossery Store

• 9 posts
• Hello!

I want to know how I do the grossery Store?

I create 4 fields with numbers, and when you click on in the button, sell,

the fruit stock decrease -1 and you stock increase +1

how I do?

It is like a store in the games, when you buy things you money decrease, your backpacket encrease and the stock decrease too.

thanks!!!

• It is a model:

grape [10] \$1,00                     grape[0]

apple [9]   \$2,00                     apple[0]

WHEN YOU GO TO THE GROSSERY STORE, YOU SPEND MONEY...AND THE STORE...

Store                               you refrigerator

Store [9] \$1,00                     grape[1]

grape [8] \$2,00                     apple[1]

it is the "interface", thanks so much"

and sorry, my english is not good! <img src="smileys/smiley18.gif" border="0" align="middle" />

• Did you try anything ? What is your problem ?

If this is one of your first games, I would suggest you take a look at this first tutorial before going into something like this.

You should also try to provide a .capx if you are not sure of what is not working :)

Develop games in your browser. Powerful, performant & highly capable.

Construct 3 users don't see these ads
• I do the frist tutorial, and now I learn about global variables.

I must to do a store and sell itens, when you clik to buy, the stock decrease, your money decrease and the price is a constant...

I get It!!!

I don't know how i can send my exemples to forum.

When I learn, i post

thanks.... <img src="smileys/smiley9.gif" border="0" align="middle" />

• DropBox is very nice to share files on this forum.

Here is an example of the simpliest item store I could think of. It's just to explain how to code it in C2, as you don't seem to find your way for now, and you can try to add more item types from it, ...

Have fun !

• Well, I doing the store...my problem now is:

if the money=0

If the quantity in the stock=0

But in my project, my button (is not a button,is a sprite -gif)

that is a watermellon, go on active.

I want stop this button when I don't have more money.

or stop when i don't have more things in my stock.

I will put in my dropbox, wait please...

(thanks!!!)

• I don't know use the dropbox yet... <img src="smileys/smiley19.gif" border="0" align="middle" />

• how to use....the dropbox Idon't know

give-me your e-mail, I will send my exemple...

the version of your construct is old.

I can't open to see,,,

• I have the last Beta, you have an old version I think, surely the last stable, but that is no problem. My mail by MP.

(you don't need to spam you know, don't be impatient, never open 2 thread for the same question...)

• 9 posts