Adding coins based on points

Just started using Construct 2? Post your questions here

Post » Tue Apr 04, 2017 8:17 am

Hi

How can we add coins depending on points that we earn.For example if we got 5 points then there should be an increase in coins by one and this should repeat.(in short for every 5 points i should get one coin)
B
21
S
7
G
1
Posts: 29
Reputation: 1,883

Post » Tue Apr 04, 2017 10:20 am

System compare two values - points%5=0
Trigger once

Add coin

(Only works if you add one point at a time)
Mistakes were made.
B
49
S
24
G
107
Posts: 1,581
Reputation: 60,303

Post » Tue Apr 04, 2017 10:24 am

If you add more points at a time, maybe set up a "points until next coin" value, and if you overshoot that you can award coins accordingly, then set it to 5-points÷5.
Mistakes were made.
B
49
S
24
G
107
Posts: 1,581
Reputation: 60,303

Post » Tue Apr 04, 2017 11:35 am

I did these but i dnt got it.Is there any other method to do it.Please help me
B
21
S
7
G
1
Posts: 29
Reputation: 1,883

Post » Fri Apr 07, 2017 5:10 pm

@ramyaswetha Can you upload your capx for us so we can check out what you did? It can be a little challenging to debug code involving math if we can't see the events. :) Thanks!
B
18
S
3
G
3
Posts: 82
Reputation: 2,543

Post » Fri Apr 07, 2017 8:14 pm

https://www.dropbox.com/s/7tzan36yhnpjg ... .capx?dl=0

There are two layouts with the two ways I mentioned to handle it.
Mistakes were made.
B
49
S
24
G
107
Posts: 1,581
Reputation: 60,303


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests