How to screen fade

For questions about using Classic.

Post » Wed Jul 07, 2010 7:05 am

Hi
I am trying to get a loading screen to fade in from black, to show the screen, then fade to black again, over the space of 3-4 seconds. I can't see a way of affecting rgb values, so I've been playing with the opacity. Problem is, I'm struggling with using simple while loops.

What I want is something like:

Set fadecnt = 0
While fadcnt < 100
set screen opacity to fadecnt
wait for 200ms
set fadecnt = fadecnt+10
/* then go to fade out routine, decrementing opacity*/

Can I get his to work? Can I 'eckers like :roll:

Any help you guys can provide will be greatly appreciated.

Martin
If your vision so exceeds your ability, then look to something closer.
Moderator
B
129
S
29
G
75
Posts: 5,145
Reputation: 53,195

Post » Wed Jul 07, 2010 9:34 am

[quote:3ve0xj06]Set fadecnt = 0
While fadcnt < 100
set screen opacity to fadecnt
wait for 200ms
set fadecnt = fadecnt+10
/* then go to fade out routine, decrementing opacity*/[/quote:3ve0xj06]

Wut?

There's a fade behavior, and Gradient object. Both have timers for fading.
Image ImageImage
B
165
S
49
G
147
Posts: 8,048
Reputation: 96,588

Post » Wed Jul 07, 2010 9:42 am

[quote="newt":26cbpspf][quote:26cbpspf]Set fadecnt = 0
While fadcnt < 100
set screen opacity to fadecnt
wait for 200ms
set fadecnt = fadecnt+10
/* then go to fade out routine, decrementing opacity*/[/quote:26cbpspf]

Wut?

There's a fade behavior, and Gradient object. Both have timers for fading.[/quote:26cbpspf]


Soz man. Very new to this fab program so still finding my way around. Cheers

Just tried it and it works a treat. Love this program :D
If your vision so exceeds your ability, then look to something closer.
Moderator
B
129
S
29
G
75
Posts: 5,145
Reputation: 53,195


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 1 guest