Results 1 to 5 of 5

Thread: Opposite of fadeOverTime()?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    1. set up initial alpha with .alpha
    2. call fadeovertime(time_goes_here)
    3. set new, desired alpha that should be faded towards
    4. fadeovertime will do stuff in the background, as a separated thread
    5. setting alpha will override fadeovertime (=cancel it, and set the new alpha immediately)
    6. after time_goes_here your hud will have the new alpha


    So, if you want a "breathing" style hud, you should do something like this:

    Code:
    hud.alpha = 0;
    while(true)
    {
       hud.fadeovertime(1);
       hud.alpha = 1;
       wait 1;
       hud.fadeovertime(1);
       hud.alpha = 0;
       wait 1;
    }
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  2. The Following 2 Users Say Thank You to IzNoGoD For This Useful Post:

    kung foo man (22nd March 2023),raphael (22nd March 2023)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •