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
120
S
28
G
68
Posts: 4,844
Reputation: 48,289

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 Image
B
161
S
48
G
90
Posts: 7,350
Reputation: 66,755

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
120
S
28
G
68
Posts: 4,844
Reputation: 48,289


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests