Skip to content

PixelEggplant/RandomTimerPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RandomTimerPlugin

A simple and clean solution that adds a RandomTimer Node to the Godot engine, which can be used to run a Timer with random Wait Times.

Built using Godot 4.2.1

v 1.0.0 Readme

How to use this plugin

  1. Place the 'addons' folder in your project's root folder. (If you've downloaded this from the Asset Library it should happen automatically)

  2. In Project Settings, in the Plugins tab, set this plugin's Status to Enabled.

This should load the custom RandomTimer Node and it should be usable just like any other Node.

Features

  • Variance: A configurable field which sets the variance for the RandomTimer's Wait Time.

    Variance, in seconds,, applied to the base .

    Variance creates the min and max values for the random Wait Time range.

    min is calculated as wait_time - variance. min is calculated as wait_time + variance.

    For example a Wait Time of 3 and a Variance of 1 would produce countdown times between 2 and 4.

    Note: The Wait Time value calculated with Variance will never be set lower than 0.05.

  • Randomize on Timeout - A configurable field which determines whether the RandomTimer will have a different Wait Time after every time it finishes.

    If true, a new Wait Time will be calculated every time the Timer times out.

  • Randomize on Start - A configurable field which determines whether the RandomTimer will have a different Wait Time every time that RandomTimer.start() gets executed.

    If true, a new Wait Time will be calculated every time the RandomTimer.start() is exectuted.

Bugs / Feedback

  • None

If you find any bugs or have some feedback about things you would like to see changed or added, make an issue on github:

https://github.com/PixelEggplant/RandomTimerPlugin/issues

About

A Godot plugin that adds a Random Timer node.

Resources

License

Stars

Watchers

Forks

Packages

No packages published