Game Development Community

Mouse trouble after adding a GUIBitmapCtrl

by Conrad Nel · in Torque Game Engine · 05/02/2007 (3:08 pm) · 6 replies

Hi there

I'm a real newbie to Torque.

The camera suddenly stopped moving when I move the mouse around.

Everything was working fine.
The camera could move as soon as I moved the mouse around.

After adding a GUIBitmapCtrl on the PlayGUI, the camera is not reacting on mouse move anymore.

Anyone had this error before or know how to fix this?

#1
05/02/2007 (3:36 pm)
If the mouse is not working specifically when it's over the GuiBitmapCtrl,
then the is probably swallowing the mouse events such as clicking.

if you want it to be "transparent" to mouse events,
make sure that the GuiProfile it's using has the parameter "modal = false;".
#2
05/04/2007 (3:54 am)
Thank you Orion

I tried the GUIBitmapBorderProfile and it works now!!
#3
05/04/2007 (8:32 am)
Sweet.
#4
06/07/2007 (5:09 am)
I've been experiencing the same problem, but making the same change hasn't helped me. Anyone have any ideas? I created the initial tutorial GameOne. Upon adding the PlayGui which uses the GuiBigTextProfile on the score in the upper left corner I lost mouse control. I have been looking for modal as suggested earlier but am lost on finding it. Any help would be appreciated. I've tried other profiles with zero success and I know mouselook works because if I run tutorial base or other premade games all is working. I'm stumped, thanks in advance.
#5
06/07/2007 (7:19 am)
You might want to try adding
noCursor = "1";
to your PlayGui
#6
06/07/2007 (7:33 pm)
Perfect thanks.