SOLVED:Fade From & To Black Layout Transitions

Get help using Construct 2

Post » Mon Feb 11, 2013 3:56 am

SOLVED:Fade From & To Black Layout Transitions

Hi,

I am trying to create a screen transition:
fade from black/fade to black
when introducing new layouts.

Can someone help me to get this working?

I basically have a black colored sprite
that is same dimensions as the game's screen
and the desired effect would be to change the opacity of the sprite
to show fade from black/fade to black screen transitions.
(fade from black when starting a layout and fade to black when ending a layout)

I'm totally new to "Construct 2" IDE...Help would be appreciated!

JeZ+Lee

JeZLee2013-02-11 06:30:48
B
11
S
3
G
4
Posts: 105
Reputation: 2,950

Post » Mon Feb 11, 2013 6:29 am

Got it working!

JeZLee2013-02-11 06:44:56
B
11
S
3
G
4
Posts: 105
Reputation: 2,950

Post » Sat Jan 25, 2014 3:12 am

Perfect! Thanks. For any one looking the "ExitingScreen" is a Boolean instance variable.
B
25
S
10
G
3
Posts: 154
Reputation: 2,838

Post » Wed Jan 29, 2014 10:47 am

You could also have used the Fade behavior, that would have required 0 line of code.
B
5
S
2
Posts: 6
Reputation: 494

Post » Wed Jan 29, 2014 6:55 pm

@nito That was what I was thinking the entire time reading this thread.

B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Post » Mon Mar 03, 2014 2:41 pm

But you can't do a behavior on an entire layout, would be awesome if you could (unless there is a way).
B
25
S
10
G
3
Posts: 154
Reputation: 2,838

Post » Mon Mar 03, 2014 2:44 pm

Wait my brain just kicked in, give the sprite the fade behavior.....silly me.
B
25
S
10
G
3
Posts: 154
Reputation: 2,838


Return to How do I....?

Who is online

Users browsing this forum: Aserak2012, ManuelPerez and 22 guests