Time in your Game

0 favourites
  • 5 posts
From the Asset Store
Time rewind like in "Braid". Choose objects that will be affected by time rewind
  • Hey! guys I have a question would you help me out?

    How I can Make a Timer Count down?

    The time has 15sec only, then I have to destroy 5 objects

    if the time is equals to 15 or greater than 10sec while done destroying the 5 objects a text will appear saying "Awesome" when it is equals to 10 or greater than 5 a text will appear saying "Great" and lastly when it is equal to 5 or greater than 0 it will say "Good".

  • I noticed you already saw my simple countdown timer example.

    All you'd have to do is check if your objects are being destroyed.

    for example:

    Set TimeRemainingInSeconds to 15

    Create a Global variable ObjectsDestroyed

    on object destroyed add 1 to variable ObjectsDestroyed

    system compare variable ObjectsDestroyed= 5

    system trigger once

    • system compare two values: TimeRemainingInSeconds > 0

    -- system set text to : "Good"

    • system compare two values: TimeRemainingInSeconds > 5

    -- system set text to : "Great"

    • system compare two values: TimeRemainingInSeconds > 10

    -- system set text to : "Awesome"

    • system compare two values: TimeRemainingInSeconds = 0

    -- system set text to : "You failed!"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Cant you use the built in Timer Behaviour?

    Its purpose built for Multiple Timed operations...

    Just add it to any Sprite in the game or object such as a Text object or Sprite font...that way you can have an onscreen timer by using the Set Text function

  • Thank you. I will try what you have given to me... <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Can you give a sample capx instead. I can't understand. It is highly appreciated. <img src="smileys/smiley1.gif" border="0" align="middle" /> thanks

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