Hiding mouse for some componenets within the same routine

Personally I prefer to use flags to stop a command being repeated every frame

Begin Routine

myClock = core.Clock() 
win.mouseVisible = False
showMouse = False

Each Frame

if showMouse == False and myClock.getTime() >= 1.5:
    win.mouseVisible = True
    showMouse = True
2 Likes