Repat for every n-th points

Get help using Construct 2

Post » Thu Aug 23, 2012 11:21 pm

Thank You very much ramones. It was very helpful, but let just say I want to add another block which adds 20 to points. Do i have to write something like:

System -> Points %100=0
          Points %110=0
          Points %120=0...
to cover all posible scores for blocks to speed up?

    
B
4
Posts: 17
Reputation: 334

Post » Fri Aug 24, 2012 12:09 am

I'm not sure what you mean there.

If you want to add 20 points to the score on a given condition :

Given condition
-> Action: System: Add 20 to points

New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Fri Aug 24, 2012 9:09 am

In my game when my character catches one type of falling block it adds 10 points to score, and when it catches another it adds 20 points, 15 points whatever.
But my problem is that i' ve got condition :
"points % 100=0" so when I let's just say have 90 points and then catch 20 points block the score will be 110 so this condition is not working anymore to speed up falling because it's not 100. I want to speed up those falling blocks regardles if it's 100,110, 220, 350. I just want them to fall faster when score passes another 100 points.

I hope i described it clear enough.sled2012-08-24 09:13:35
B
4
Posts: 17
Reputation: 334

Post » Fri Aug 24, 2012 9:16 am

Every ticks -> set speed to startSpeed + floor(points/100) * 10
the speed with increase by 10 every 100 pointsYann2012-08-24 09:17:59
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Fri Aug 24, 2012 11:32 am

Thanks. Ok what Am I doing wrong, beacuse it almost works, but speed increases with every point not with every 100 points :/ Here is my condition:

Every ticks ->System -> Set speed to 100+floor(points/5)*100

I wrote "(points/5)*100" to check faster if this works.

Is this startSpeed holds somehow first value of speed?sled2012-09-02 13:37:58
B
4
Posts: 17
Reputation: 334

Post » Sun Sep 02, 2012 1:46 pm

Yann I checked Your condition and there is something i don't understand beacuse it speeds up my blocks every time player catches ONE block!

speed is a global variable
startspeed is global variable with value of 50.

Every Tick -> System -> set speed to startspeed+floor(points/5)*100

And this condition doesn't work for every 5 points but for every 1 point only, so would You be so kind to describe it more clearly.sled2012-09-02 13:47:45
B
4
Posts: 17
Reputation: 334

Post » Sat Sep 22, 2012 10:55 am

[QUOTE=Yann] Every ticks -> set speed to startSpeed + floor(points/100) * 10
the speed with increase by 10 every 100 points[/QUOTE]

Yann this event is not increasing by every 100 points but with every 1 point :( Maybe if You explain to me what is your "startSpeed" variable because i have written exacly what you said and this doesn't work :(
B
4
Posts: 17
Reputation: 334

Previous

Return to How do I....?

Who is online

Users browsing this forum: Colorfish, Waltuo and 4 guests