title: Create a simple countdown in processing
body: <p>I have searched up so many sites on Google to try and get this to work but NO ONE seems to have this anywhere , and if they do it's just NOT working with my program... What I am trying to achieve is to have a player recoil that when the player gets hit, he has a "x" amount of time between getting hit the first time and the second time.</p>
  
  <p>So I have a <code>Boolean "hit" = false</code> and when he gets hit, it changes to <code>true</code>. Which means he can't get hit again until it's changed to false again.</p>
  
  <p>So I'm trying to set up a function in my program to set a "timer" for "x" amount of seconds <code>IF hit = true</code> and once that timer hits "x" amount of seconds, hit will get switched back to false.</p>
  
  <p>Anyone have any ideas?</p>
  
  <p>Thanks!!</p>