How do I make a "Reverse lerp"

Get help using Construct 2

Post » Tue Dec 27, 2016 8:31 am

Instead of going 1 0.5 0.2 0.1 0.05...
How do I go 1 0.00001 0.0001 0.001 0.01 0.1 0.2 0.5...
I know it's mathematically impossible because the limit of decimals is infinite but is there a way I can simulate something like it?
yes.
__
|:D|
Gamjolt account:http://gamejolt.com/profile/masgame/409321/
B
37
S
15
G
3
Posts: 40
Reputation: 5,002

Post » Tue Dec 27, 2016 1:17 pm

Lerp(a,b,c)
The target value is b depending on a percentage given by c, so you would just change the target value via a variable, so there's no reason to think it's impossible, aside from using ridiculously small values that is.
100 percent of 0.00001 is 0.00001
Image ImageImage
B
179
S
50
G
207
Posts: 8,719
Reputation: 128,306


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests