is anyone else having trouble with drawing green S

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

drnmr(Posted 2005) [#1]
this is my coding:
mx=(mousex()+10)
if keyhit(key_s)
setcolor 0,255,0
movemouse mx,mousey()
endif
flip


Sarge(Posted 2005) [#2]
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



drnmr(Posted 2005) [#3]
everything related ive tried, but only s doesnt work


Perturbatio(Posted 2005) [#4]
you're not colour blind are you? :)


FlameDuck(Posted 2005) [#5]
You realise you aren't actually drawing anything in that code you posted? The code Sarge posted works as expected here.


drnmr(Posted 2005) [#6]
sorry if this caused confusion, i didn't post the exact code that i used in my program. i fixed the problem.