is anyone else having trouble with drawing green S

BlitzMax Forums/BlitzMax Programming/is anyone else having trouble with drawing green S

this is my coding:
mx=(mousex()+10)
if keyhit(key_s)
setcolor 0,255,0
movemouse mx,mousey()
endif
flip

Nuh mate, tell me if this works.
Graphics 800,600,0

While Not KeyHit( key_escape )

	mx=(MouseX()+10)

	If KeyHit(key_s)
		SetColor 0,255,0
		DrawRect( MouseX(), MouseY(), 5, 5 )
		MoveMouse mx,MouseY()
	EndIf

Flip 
Wend


everything related ive tried, but only s doesnt work

you're not colour blind are you? :)

You realise you aren't actually drawing anything in that code you posted? The code Sarge posted works as expected here.

sorry if this caused confusion, i didn't post the exact code that i used in my program. i fixed the problem.