Using 2 seperate MouseHits?

BlitzMax Forums/BlitzMax Beginners Area/Using 2 seperate MouseHits?

FIXED

SuperStrict

Graphics 800, 600

Global num:Int = 0
Global tick:Int = 0

While Not KeyHit(KEY_ESCAPE)
	
	Cls
		Local MHL:Int = MouseHit(MOUSE_LEFT) 
		If MouseX() > 0 and MouseX() < 800
			If MouseY() > 0 and MouseY() < 600
				
				If MHL
					num:+1
				EndIf
				
				If MHL
					tick:+1
				End If
			
			End If
		End If
	
		DrawText "Num = " + num, 0, 0
		DrawText "Tick = " + tick, 0, 15
	
	Flip
	
Wend


Don't know why it doesn't work using the method in the first post but this method here works.