Time since camera moved/player inactive

I want to bring up a pause screen canvas when the game has had NO INPUT data (ie. camera movement/mouse data) after a minute.

Can anyone help me with this please?

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

This is great! Thank you!