Lerping Score.

Get help using Construct 2

Post » Thu Feb 21, 2013 3:07 pm

Hey guys and gals, I want my score to tick up when you complete the level. I have a lerp in place and it seems to just jump straight to the lerp final number. I tried very tiny numbers and it doesnt seem to work. Could someone take a look at this fella?



B
37
S
11
G
3
Posts: 279
Reputation: 8,396

Post » Thu Feb 21, 2013 3:22 pm

I think you are thinking way too complex for this.
I got it working using 2 variables one that holds the "score" and one that displays it on screen.

placed an event like,

Score is not equal to display score
   -every 0.01 > add 1 to display score

whenever the score changes the display score will quickly add 1 till it reaches that amount.

.capx example download
B
25
S
7
G
1
Posts: 83
Reputation: 2,550

Post » Thu Feb 21, 2013 3:42 pm

excellent thanks BAC I will test this after my delicious lunch. I usually think to complex. Need to chill out. HAHAHAH ok thank you.
B
37
S
11
G
3
Posts: 279
Reputation: 8,396

Post » Thu Feb 21, 2013 4:01 pm

haha, there is probably a math solution somewhere, I just tend to be bad at getting math expressions to function as I expect them to so i tend to rely on variables

but it does work so hope it helps
B
25
S
7
G
1
Posts: 83
Reputation: 2,550

Post » Thu Feb 21, 2013 4:10 pm

Something like this?
ImageImageImageImage
B
156
S
64
G
41
Posts: 2,589
Reputation: 34,613


Return to How do I....?

Who is online

Users browsing this forum: morti, Yahoo [Bot] and 1 guest