Need help with timer [SOLVED]

0 favourites
  • 5 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • MODERATOR: PLEASE MOVE THIS TO "How Do I..." SECTION OF FORUM. THANKS

    I am trying to create an achievement engine, and so far it works well. There's only one problem: I don't know how to display the unlocked achievement for a certain amount of time. What I tried doing was destroying the achievement after 5 seconds, but when I unlocked it 5 seconds after I launched the test game, it never showed up.

    In short: how do I make an invisible timer that I can start, stop, and reset?

    Keep in mind that I am using the free edition, so try not to explain it with too many events, if possible. Thanks. <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Also, I looked for a solution already, but couldn't find one.

  • What I would do, is have an Instance Variable in the sprite called TimeLimit of the achievement, then...

    +Every Tick

    • Add "dt" to TimeLimit

    +Sprites' "TimeLimit" > 5

    • Destroy Sprite
  • What I would do, is have an Instance Variable in the sprite called TimeLimit of the achievement, then...

    +Every Tick

    -Add "dt" to TimeLimit

    +Sprites' "TimeLimit" > 5

    -Destroy Sprite

    That's...GENIUS! <img src="smileys/smiley4.gif" border="0" align="middle" /> <img src="smileys/smiley4.gif" border="0" align="middle" /> <img src="smileys/smiley4.gif" border="0" align="middle" /> <img src="smileys/smiley4.gif" border="0" align="middle" /> <img src="smileys/smiley4.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm glad I could be of help! <img src="smileys/smiley10.gif" border="0" align="middle" />

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