How do I preload next layout?

Get help using Construct 2

Post » Tue Sep 01, 2015 3:51 pm

BackendFreak wrote:That is basically the same solution as with loading screen, but you use a black layer instead of loading screen sprite in it. However I haven't tried lerping the opacity. I need to check it out :). Thanks for sharing!


Demo


capx


With a bit of optimization in mind relating to the lerping.

I set a delay at the start of layout, can be removed or adjusted to fit purpose.

:)
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Tue Sep 01, 2015 11:04 pm

You can definitely lerp the opacity.

Something like:
Image

Set Opacity: lerp(0,100,((1-0.09^(x-2))/(1-0.01^(x-2))))

That way you have nice smooth transitions both directions.

Lol. @lennaert beat me to it.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Previous

Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 12 guests