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
44
S
14
G
3
Posts: 290
Reputation: 8,895

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
26
S
7
G
1
Posts: 83
Reputation: 2,575

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
44
S
14
G
3
Posts: 290
Reputation: 8,895

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
26
S
7
G
1
Posts: 83
Reputation: 2,575

Post » Thu Feb 21, 2013 4:10 pm

Something like this?
ImageImageImageImage
B
158
S
66
G
43
Posts: 2,603
Reputation: 35,868


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 32 guests