GDevelop-extensions icon indicating copy to clipboard operation
GDevelop-extensions copied to clipboard

Countdown Timer

Open github-actions[bot] opened this issue 4 months ago โ€ข 0 comments

Description

The Countdown Timer extension provides a countdown timer functionality to create timed challenges in your projects. You can set an initial time in seconds and then start the timer to count down. The extension includes actions to start, reset, pause, and resume the timer, allows for negative numbers, and provides expressions to get the remaining time. You can also trigger alerts when the time is running out.

How to use the extension

Clock Name: Set a unique name for the clock (e.g., ClockName). Use actions like SetCountdown to set the time, StartCountdown to start it, and PauseCountdown to pause or resume. You can add or subtract seconds with AddCountdown and SubtractCountdown. Conditions like IsTimerFinished and IsTimerPaused allow you to check the timer's status.

Features:

Set Countdown: Set the initial time in seconds. Start Countdown: Start the timer from the previously set value. Add Countdown: Add more seconds to the timer. Subtract Countdown: Subtract seconds from the timer. Pause Countdown: Pause or resume the countdown timer. Restart Countdown: Reset the timer to its initial value. Is Timer Finished: Check if the countdown has reached zero. Get Remaining Time: Get the remaining time of the countdown. Get Initial Configuration Value: Retrieve the initial setting of the timer.

Checklist

  • [X] I've followed all of the best practices.
  • [X] I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
  • [x] I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.

What tier of review do you aim for your extension?

Community (Unreviewed)

Example file

Countdown Timer Example.zip

Extension file

CountdownTimer.zip

github-actions[bot] avatar Oct 14 '24 11:10 github-actions[bot]