Publisher
pixeleggplant
RandomTimer
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.
This plugin has been mirrored from the Godot Asset Library.
The plugin author is in no way affiliated with Gadget.
If you are the author of this plugin and would like this mirror removed, please contact support@gadgetgodot.com.
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
Place the 'addons' folder in your project's root folder. (If you've downloaded this from the Asset Library it should happen automatically)
In Project Settings, in the Plugins tab, set this plugin's
Statusto 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
minandmaxvalues for the random Wait Time range.minis calculated aswait_time - variance.minis calculated aswait_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
RandomTimerwill have a different Wait Time after every time it finishes.If
true, a new Wait Time will be calculated every time theTimertimes out.Randomize on Start - A configurable field which determines whether the
RandomTimerwill have a different Wait Time every time thatRandomTimer.start()gets executed.If
true, a new Wait Time will be calculated every time theRandomTimer.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: