Time since camera moved/player inactive

Just us a float timer:

  • increase it every update
  • check it against 60 seconds
  • reset it to zero if there is any input

Here’s more reading about simple timers:

Cooldown timers, gun bullet intervals, shot spacing, rate of fire:

GunHeat (gunheat) spawning shooting rate of fire:

1 Like