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
71
S
30
G
25
Posts: 984
Reputation: 19,503

Post » Wed May 31, 2017 3:18 pm

@eochranek

Try (1-(time-transStartTime)/transDuration)*100
B
20
S
8
G
3
Posts: 458
Reputation: 4,055

Post » Wed May 31, 2017 3:20 pm

...which is the same as @Magistross (beat me to it!) ;)
B
20
S
8
G
3
Posts: 458
Reputation: 4,055

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: Microbex and 24 guests