Re: Displaying Updates Over Time

new topic     » goto parent     » topic index » view thread      » older message » newer message

I had to fix a bug in my code. I had used:

  if (not counter and get_key() = -1) then -- Reset counter if a key is pressed and counter is 0. 
    counter = 1000 
  end if 

The problem is that the counter will only be reset IF a key has been pressed during that iteration. If you miss it. then the counter continued to decrease into the negatives and never reach zero again.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu