timer count down

Code tips and tricks for beginners
Post Reply
Zim
Posts: 88
Joined: Mon Feb 08, 2021 9:15 pm
Has thanked: 61 times
Been thanked: 44 times

timer count down

Post by Zim »

count an occurrence or create a timer.
hello = hello + 1 is the key. Your variable (hello) has 1 added each time it is run

Code: [Local Link Removed for Guests]


hello = 0                  'declares your variable name
timer0 1000, blah      ' timer to run blah title 
wait

blah:
hello = hello + 1  'adds 1 to your variable each time its accessed
wlog hello           ' wlog displays your variable in the "log" window for your viewing pleasure
return


I am a beginner too, so if you see an error, please feel free to comment or correct me! :)
Post Reply