Results 1 to 5 of 5

Thread: Opposite of fadeOverTime()?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Yes, use fadeovertime.

    hud.alpha = 0;
    hud fadeOverTime(1);
    hud.alpha = 1;

    Done.
    "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)

  3. #2
    Deleter/Deleted
    Join Date
    Jan 2023
    Posts
    76
    Thanks
    40
    Thanked 9 Times in 9 Posts
    It works great thank you very much

    Does the code after fadeOverTime() get executed after it's amount is passed?

    I'm not sure to understand, I have this code for something else:

    PHP Code:
    self._welcomehud setText(&"Welcome");
    self._welcomehud.fontScale 1.3;

    wait (2);

    self._welcomehud fadeOverTime(1);
    self._welcomehud.alpha 0;

    wait (1);

    if (
    isdefined(self._welcomehud))
    {
        
    self._welcomehud destroy();

    Is wait (1); useless here?

    If I try to remove it and the hud still gets destroyed after 1sec, I will tell

  4. The Following User Says Thank You to raphael For This Useful Post:

    kung foo man (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
  •