GDevelopApp / GDevelop-extensions

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

New extension: Countdown Timer #932

Closed cvault-g closed 1 year ago

cvault-g commented 1 year ago

Description

This repository contains the Countdown Timer extension for GDevelop. It provides a countdown timer functionality that can be used to create timed challenges in GDevelop projects. The extension allows you to set an initial time in seconds and then start the timer to count down. Includes actions to start or reset the timer, stop it at zero or allow negative numbers, and get the time remaining on the timer via an expression. In addition, it introduces the new expression "GetInitialConfigurationValue" to retrieve the initial configuration value.

Characteristics

Set countdown timer in seconds. Start or restart the countdown timer. Stop the timer at zero or allow negative numbers. Get the remaining time of the countdown timer through an expression. Retrieve the initial configuration value using the "GetInitialConfigurationValue" expression.

How to use the extension

Usage

To use the Countdown Timer extension in your GDevelop project, follow these instructions:

  1. Set the initial time of the countdown timer using the "SetCountdown" action. Provide the name of the timer and the desired time in seconds.
  2. Start the countdown timer using the "StartCountdown" action. Provide the name of the timer.
  3. To restart the countdown timer, use the "RestartCountdown" action. Provide the name of the timer.
  4. Get the remaining time of the countdown timer using the "GetRemainingTime" expression. Provide the name of the timer.
  5. Retrieve the value of the initial configuration using the "GetInitialConfigurationValue" expression. Provide the name of the timer.

Checklist

What tier of review do you aim for your extension?

Community (Unreviewed)

Example file

Extension file

github-actions[bot] commented 1 year 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:

  ⟶ ❌ [Filled out names and descriptions]: Required field 'description' of the function 'StarCountdown parameter 'zeroNumbers' is not filled out!
  ⟶ ❌ [No 'Get' in expressions]: Expression 'GetRemainingTime' is using prohibited 'Get' prefix!
  ⟶ ❌ [No 'Get' in expressions]: Expression 'GetInitialConfigurationValue' is using prohibited 'Get' prefix!

Please update your original submission post with a new zip file containing your extensions updated to follow those guidelines 🙏

github-actions[bot] commented 1 year 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:

  ⟶ ❌ [Filled out names and descriptions]: Required field 'description' of the function 'StarCountdown parameter 'zeroNumbers' is not filled out!
  ⟶ ❌ [No 'Get' in expressions]: Expression 'GetRemainingTime' is using prohibited 'Get' prefix!
  ⟶ ❌ [No 'Get' in expressions]: Expression 'GetInitialConfigurationValue' is using prohibited 'Get' prefix!

Please update your original submission post with a new zip file containing your extensions updated to follow those guidelines 🙏

github-actions[bot] commented 1 year ago

Hi @cvault-g! 👋 This submission has passed all required tests, and has been moved to a PR as part of our submission pipeline. You can see the progress of your submission on this page. Community submissions are not reviewed by default, so your extension should be added once we've checked that your submission doesn't contain malicious code without further intervention on your part. If you wish for your extension to be reviewed (and thereby moved to the list of reviewed extensions), please follow the instructions written on the README. Thanks again for your contribution to GDevelop!