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
36
S
11
G
3
Posts: 279
Reputation: 8,371

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
24
S
7
G
1
Posts: 82
Reputation: 2,525

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
36
S
11
G
3
Posts: 279
Reputation: 8,371

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
24
S
7
G
1
Posts: 82
Reputation: 2,525

Post » Thu Feb 21, 2013 4:10 pm

Something like this?
ImageImageImageImage
B
155
S
61
G
41
Posts: 2,577
Reputation: 34,314


Return to How do I....?

Who is online

Users browsing this forum: Fenix18, mumu64 and 7 guests