How do I find the inverse of this equation?

Get help using Construct 2

Post » Wed May 31, 2017 3:12 pm

When transitioning out of a layout I apply the pixellate the transition so it get's more pixellated over time using this equation (taken from an example project):

set parameter 0 to: ((time-transStartTime) / transDuration) * 100

I need to find the inverse of this so that I can start the next layout "pixellated" and get less pixellated over time.

Thanks!
B
9
S
1
G
2
Posts: 32
Reputation: 1,974

Post » Wed May 31, 2017 3:15 pm

100 - (the equation) should work.
B
78
S
32
G
27
Posts: 1,021
Reputation: 20,952

Post » Wed May 31, 2017 3:18 pm

@eochranek

Try (1-(time-transStartTime)/transDuration)*100
B
22
S
9
G
4
Posts: 481
Reputation: 4,344

Post » Wed May 31, 2017 3:20 pm

...which is the same as @Magistross (beat me to it!) ;)
B
22
S
9
G
4
Posts: 481
Reputation: 4,344

Post » Wed May 31, 2017 3:42 pm

That's it! Thank you both!
B
9
S
1
G
2
Posts: 32
Reputation: 1,974


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 29 guests