GDevelopApp / GDevelop-extensions

Repository of behaviors, actions, conditions and expressions to be used in GDevelop for creating games
https://gdevelop.io
MIT License
136 stars 53 forks source link

Countdown Timer #1413

Open cvoult-g opened 1 month ago

cvoult-g commented 1 month ago

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

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] commented 1 month ago

πŸ‘‹ Thanks for your submission! Unfortunately, all submitted extensions have to meet some minimal quality standard - the extension best practices - and our system has found that your extension does not fully comply πŸ˜”. You can find all of those rules on the GDevelop wiki.

The following issues have been found by the system concerning the respect of those best practices by your extension:

  ⟢ ❌ [Dots in sentences]: Field 'description' of the function 'IsTimerPaused' misses a dot at the end of the sentence!

Please update your original submission post with a new zip file containing your extensions updated to follow those guidelines πŸ™

github-actions[bot] commented 1 month ago

πŸ‘‹ Thanks for your submission! Unfortunately, all submitted extensions have to meet some minimal quality standard - the extension best practices - and our system has found that your extension does not fully comply πŸ˜”. You can find all of those rules on the GDevelop wiki.

The following issues have been found by the system concerning the respect of those best practices by your extension:

  ⟢ ❌ [Dots in sentences]: Field 'description' of the function 'IsTimerPaused' misses a dot at the end of the sentence!

Please update your original submission post with a new zip file containing your extensions updated to follow those guidelines πŸ™