How do I make money system

Get help using Construct 2

Post » Wed May 18, 2016 6:44 pm

hello guys!!!
i'm tring to do a game with money.
In this game you earn money with mini game,
the more kills you do the more money you get.

but i don't know how to do this
for examples-
i played on one off the mini games and i killed 50 monsters
so i want to add 50 coins and when i will enter again and kill more 50 monsters i will have 100 coins

how do i do that?
B
4
Posts: 10
Reputation: 201

Post » Wed May 18, 2016 7:11 pm

global variable
if monster killed add 50 to your global variable

if you mean when you exit the game and come back later then it's local storage

  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707

Post » Wed May 18, 2016 7:28 pm

fm4fanAT wrote:global variable
if monster killed add 50 to your global variable

if you mean when you exit the game and come back later then it's local storage


how do i combaine local storage?
B
4
Posts: 10
Reputation: 201

Post » Wed May 18, 2016 7:44 pm


  • System > On start of layout | system > load game from slot "brain"
  • System > On load failed | system > scroll to obj_Forum
B
17
S
8
G
5
Posts: 340
Reputation: 4,707

Post » Thu May 19, 2016 12:14 pm



hey man!
thanks!!
but it didnt work
can you make a sample for me?
B
4
Posts: 10
Reputation: 201

Post » Thu May 19, 2016 12:33 pm

Do you mean like this game I made, try it and if thats what your talking about I can help.

https://www.scirra.com/arcade/action-ga ... ights-7569
Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 681
Reputation: 16,613

Post » Mon May 23, 2016 4:30 pm

PixelPower wrote:Do you mean like this game I made, try it and if thats what your talking about I can help.

https://www.scirra.com/arcade/action-ga ... ights-7569



YEEESSSSS!!!!!!!!!!!!!!!!
B
4
Posts: 10
Reputation: 201

Post » Mon May 23, 2016 5:47 pm

Ok cool I will post the capx file so you can look at it and also so you can see how to keep your project semi-organized to find the code your looking for

http://www65.zippyshare.com/v/1byvwy1x/file.html

Let me know if you don't understand something.
Check out my awesome Android Game releases https://play.google.com/store/apps/deve ... ames&hl=en
B
38
S
18
G
24
Posts: 681
Reputation: 16,613


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests