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
32
S
9
G
3
Posts: 275
Reputation: 8,063

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
22
S
5
G
1
Posts: 81
Reputation: 2,271

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
32
S
9
G
3
Posts: 275
Reputation: 8,063

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
22
S
5
G
1
Posts: 81
Reputation: 2,271

Post » Thu Feb 21, 2013 4:10 pm

Something like this?
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170


Return to How do I....?

Who is online

Users browsing this forum: claurent9, imothep85 and 28 guests