Returns true when the elapsed time is between the given interval. Ex: an interval of 0.1 will be false for 0.1 seconds, then true for 0.1 seconds, and then repeat.
time
interval
0.1
false
true
Elapsed time
INterval to check whether we're between
Offset to the interval (so we can, in effect, start partyway through an interval) Credit: Maddy Thorson (https://bsky.app/profile/maddymakesgames.com/post/3maozzg422227)
Returns true when the elapsed
timeis between the giveninterval. Ex: anintervalof0.1will befalsefor 0.1 seconds, thentruefor 0.1 seconds, and then repeat.