Klaas #1 why not use a timer ?Open in online IDE Graphics 350,200,32,2 timer = CreateTimer(20) ;20 hz timer While Not KeyHit(1) WaitTimer(timer) Wend