You need to declare the
MOVE_SPEED variable as
global in your
MOVE_SPEEDCH function.
Code:
def MOVE_SPEEDCH():
global MOVE_SPEED
MOVE_SPEED=0
vizact.ontimer(22,MOVE_SPEEDCH)
The
Python Tips page in the docs explains when you need to use the
global keyword.