0 Favourites

How to screen fade

This forum is currently in read-only mode.
  • 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

    Any help you guys can provide will be greatly appreciated.

    Martin

  • [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*/

    Wut?

    There's a fade behavior, and Gradient object. Both have timers for fading.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • [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*/

    Wut?

    There's a fade behavior, and Gradient object. Both have timers for fading.

    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

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
52 9,676
Rable's avatar
Rable
Unread hot topic
56 6,101
broknecho's avatar
broknecho
Unread hot topic
54 7,190
SamRock's avatar
SamRock