chelleteng
04-08-2012, 09:13 AM
(In Public method)
repeat
(codes)
showBPM(DotYpos, 2)
(codes)
-----------------------------------------------------------------
PRI showBPM(num, counter) | count, bpm
gr.colorwidth(0,0)
gr.box(-128,-100,60,30)
if num > 0
count++
bpm := count - (count - ++counter)
showDEC(bpm)
else
showDEC(0)
------------------------------------------------------------------
***
[The showDEC method is just a function to display the numbers on the screen.]
Altered from Chip Gracey's Graphics Demo codes,
how do I increase the counter every time the num is more than 0? What I am currently getting on the display is constantly 3 only..
The program has only increment the counter once whenever the num is more than 0.
Any ideas? Thank you!
repeat
(codes)
showBPM(DotYpos, 2)
(codes)
-----------------------------------------------------------------
PRI showBPM(num, counter) | count, bpm
gr.colorwidth(0,0)
gr.box(-128,-100,60,30)
if num > 0
count++
bpm := count - (count - ++counter)
showDEC(bpm)
else
showDEC(0)
------------------------------------------------------------------
***
[The showDEC method is just a function to display the numbers on the screen.]
Altered from Chip Gracey's Graphics Demo codes,
how do I increase the counter every time the num is more than 0? What I am currently getting on the display is constantly 3 only..
The program has only increment the counter once whenever the num is more than 0.
Any ideas? Thank you!