Hi all,
the title of my post is not very clear lol
I'm going to try to explain my problem.
Just for fun, I wanted to program a short program to calculate at what speed I can hit and release a button, as it was used in video games like Decathlon on hyper sports. The faster you hit the button, the faster the screen caracter runs. I think it was very easy to do it but.... erg.... No way :/
I've tried this :
boucle:
a=0:c=0
for i=1 to 50000
if joystick fire a() and a=0 then c=c+1:a=1
if joystick fire a()=0 and a=1 then c=c+1:a=0
NEXT
print c
goto boucle
c is the variable that is counting how many times I hit and release the button. ... But I only got 1 or 2 for c when I try this.
I don't want the program to count on a long period, but on short period to use it as it's used in an Hypers Sports program :/
I don't know if my explanation is clear but I will be happy if someone can help me about this. Thanx !
Buzzz
Starbuzzzz