HUD fades after a period of time

0 favourites
  • 4 posts
From the Asset Store
Use this epic life system with hearts like famous games in your game!
  • Hey Construct community,

    I'm trying to get my HUD to fade away after it has not been in use for 10 seconds, as seen in Skyrim (it disappears if health is full and not in combat). I've tried using instance timers and global timers to no avail, and I'm stumped. Any ideas?


  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Weird, I've used Global HUD timers in my own game just fine. how exactly are you implementing them?

    FYI Here's how I have it set up in mine, mine has the HUD scroll upward out of view. Although you could easily do the same with opacity

    GV: HUD


    HUD > 0


    Set Each hud piece to lerp(X,32,dt),lerp(Y,32,dt)


    Set HUD to Clamp(0,10, HUD-dt)


    Set Each hud piece to lerp(X,-32,dt),lerp(Y,-32,dt)

    On Even to Bring up Hud (Say Health<100)

    Set HUD to 10

  • Wow, I forgot to try changing the opacity through events. I was using the built-in Fade behavior. I'll see if I can make it work through changing the opacity.

  • <img src="" border="0" />

    So, basically, after your events happen (PlayerHealth = 100% and TouchCounter = 0) or whatever. Set the layer opacity from 0 to 1.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)