Hello
I have some virtual buttons that increment or decrement a variable when pressed once. If I hold down the button, I would like to continue changing the variables value
and sync the screen to reflect this. For some reason this doesn't appear to work correctly.
My website for testing is here
[href=http://webtesting4livesite.com/ ]http://webtesting4livesite.com/ [/href]
to get a better idea of what I'm trying to do.
Thanks yoda333
do
If getVirtualButtonPressed(1)
PlaySound ( sound,5 )
a=a-1
Sync()
elseIf GetVirtualButtonPressed(2)
PlaySound ( sound,5 )
b=b-1
Sync()
elseif GetVirtualButtonPressed(3)
PlaySound ( sound,5 )
c=c-1
Sync()
elseIf GetVirtualButtonPressed(4)
PlaySound ( sound,5 )
d=d-1
Sync()
elseIf GetVirtualButtonPressed(5)
PlaySound ( sound,5 )
a=a+1
Sync()
elseIf GetVirtualButtonPressed(6)
PlaySound ( sound,5 )
b=b+1
Sync()
elseIf GetVirtualButtonPressed(7)
PlaySound ( sound,5 )
c=c+1
Sync()
elseif GetVirtualButtonPressed(8)
PlaySound ( sound,5 )
d=d+1
Sync()
elseIf GetVirtualButtonPressed(9)
PlaySound ( sound,5 )
e=e-1
Sync()
elseif GetVirtualButtonPressed(10)
PlaySound ( sound,5 )
f=f-1
Sync()
elseIf GetVirtualButtonPressed(11)
PlaySound ( sound,5 )
g=g-1
Sync()
elseIf GetVirtualButtonPressed(12)
PlaySound ( sound,5 )
h=h-1
Sync()
elseIf GetVirtualButtonPressed(13)
PlaySound ( sound,5 )
e=e+1
Sync()
elseIf GetVirtualButtonPressed(14)
PlaySound ( sound,5 )
f=f+1
Sync()
elseif GetVirtualButtonPressed(15)
PlaySound ( sound,5 )
g=g+1
Sync()
elseif GetVirtualButtonPressed(16)
PlaySound ( sound,5 )
h=h+1
Sync()
else
endif
loop