0 Favourites

Need help with timer [SOLVED]

  • 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" />

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • 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" />

  • 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)
Similar Topics Posts Views Last Post
Unread hot topic
157 12,690
megatronx's avatar
megatronx
Unread hot topic
0 Favourites
Kiira will help! :D
132 16,606
Kiira's avatar
Kiira
Unread hot topic
0 Favourites
I need a beta tester (or two)
69 5,950
alspal's avatar
alspal