Using 2 seperate MouseHits?

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

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I am in the process of finalising my map editor (non MaxGUI).

On my PC I've been unable to have 2 seperate Mousehits doing different things.

I've made a small test program to show you what I mean.

SuperStrict

Graphics 800, 600

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

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


When I run the following on my PC num increases with every mousehit but tick doesn't.

Why?

Can I not use 2 seperate mousehits doing different things?