Skip to content

cf_on_interval

Category: time
GitHub: cute_time.h


Returns true for one frame update each time an interval of seconds elapses.

bool cf_on_interval(float interval, float offset);
Parameters Description
interval Number of seconds between each interval.
offset A starting offset in seconds for the interval. This gets mathematically modulo'd. Used to sync times for rythms or repeats.
Simply place this within an if-statement!

cf_on_timestamp
cf_between_interval