TIMER not working as intended (bug?)

By 64_Tesseract

“TIMER returns the time passed since LowRes Coder was started in seconds.” -LowRes Help

So basically, I was working on a game and I remembered how to reduce movement lag so the character moves the same speed regardless on the amount of enemies, using the formula “Speed/TimeSinceLastFrame” or something along those lines… I started experimenting and I found my program didn’t work. I debugged the program and found the TIMER variable wasn’t working, as the lag affected it. I don’t believe this is how it was intended to work, so I made this program to demonstrate it.

This program calculates what TIMER says about the time difference between frames and my more accurate calculation (variable ACTSEC if you’d want to use this yourself), which divides the seconds since the last calculation (using TIME$, calculates every second) by the frames. You can tap the screen to induce some lag, (you can increase it by modifying the FOR value at the bottom,) and it will show how inaccurate TIMER is. The program is pretty buggy, though, since I only made it in a few hours.

I really hope Timo sees this!

Get LowRes Coder to use this program.

Play homegrown retro games and program your own!