How do I - Make an action last for a specific time?

0 favourites
  • 3 posts
From the Asset Store
Time rewind like in "Braid". Choose objects that will be affected by time rewind
  • Hi Everyone - I am trying to figure out how to use a timer. I set a player's opacity to 50, disabling collisions for this condition, but I would only like it to last 5 seconds. I am trying to use the timer behavior, and set the timer accordingly, but I can't seem to figure it out. Is there a simpler way to make any given action last for a particular time?


  • When you set the opacity to 50, also set a timer for 5 seconds. create another condition to check for the timer going off. In this condition, reset the opacity.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sounds like you are trying to do something similar to what I did in my space shooter (in my signature area). When my player dies he is invulnerable during the respawn period for a few seconds.

    I ended up using a variable for vulnerable (yes/no) and a set opacity 0 (I used set visibility but same thing really), respawn player (who is set invulnearble but invisible), Wait 3 seconds, set player to visible and then variable to vulnerable. In my damage event I simply check whether player is vulnerable before allowing damage.

    You could do something similar just using opacity instead.

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