How I do the grossery Store

Get help using Construct 2

Post » Wed Jun 26, 2013 1:38 pm

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!!!
B
10
S
2
G
2
Posts: 81
Reputation: 1,757

Post » Wed Jun 26, 2013 1:42 pm

It is a model:



Store                         your refrigerator

grape [10] $1,00                     grape[0]
apple [9]   $2,00                     apple[0]

                               your money $ 100,00

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]
             
                                      your money $ 97,00


it is the "interface", thanks so much"
and sorry, my english is not good!
B
10
S
2
G
2
Posts: 81
Reputation: 1,757

Post » Wed Jun 26, 2013 4:17 pm

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 :)Guizmus2013-06-26 16:17:56
B
17
S
8
G
4
Posts: 461
Reputation: 6,157

Post » Wed Jun 26, 2013 4:28 pm

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....
B
10
S
2
G
2
Posts: 81
Reputation: 1,757

Post » Wed Jun 26, 2013 4:47 pm

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 !
B
17
S
8
G
4
Posts: 461
Reputation: 6,157

Post » Wed Jun 26, 2013 6:08 pm

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

if the money=0
     you can't Buy.
If the quantity in the stock=0
    you can't buy too.

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!!!)

B
10
S
2
G
2
Posts: 81
Reputation: 1,757

Post » Wed Jun 26, 2013 6:14 pm

I don't know use the dropbox yet...
B
10
S
2
G
2
Posts: 81
Reputation: 1,757

Post » Wed Jun 26, 2013 6:24 pm

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,,,
B
10
S
2
G
2
Posts: 81
Reputation: 1,757

Post » Wed Jun 26, 2013 8:34 pm

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...)
B
17
S
8
G
4
Posts: 461
Reputation: 6,157


Return to How do I....?

Who is online

Users browsing this forum: Lancifer and 49 guests