How to screen fade

This forum is currently in read-only mode.
From the Asset Store
Is a circular loading screen with code ready to use. No Animation.
  • 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.

  • Try Construct 3

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

    Try 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)