Game Development Community

Mouse cursor problem

by Steve D · in Torque Game Engine · 02/01/2007 (7:42 am) · 8 replies

I'm sure this is an easy fix but I can't find the solution. I modified the playgui and it's working fine but now I see the mouse cursor in my game and I can no longer look right or left with the mouse, any ideas? I would imagine it has something to do with mouse focus but I can't find the function.

#1
02/01/2007 (7:56 am)
This pops up all the time =)
Mouse issue
That should fix your problem

#2
02/01/2007 (11:33 am)
Thanks :) I'll try and do a better search of the forums before posting.
#3
02/01/2007 (3:13 pm)
Actually I did that and it still didn't work. All I did was add a counter to playgui. Any other ideas?
#4
02/01/2007 (3:16 pm)
It sounds as if you want the mouse to control BOTH the cursor, and player head movement, at the same time.

While possible (with code changes), it's really not a good idea. Just about every fps/rpg out there goes with the modal mouse concept, where the mouse either controls the player, or the cursor, but not both, for very good reasons.
#5
02/01/2007 (3:28 pm)
Check that noCursor = "1"; is still set in playGui.gui. It gets reset when you modify playGui.gui.
#6
02/01/2007 (4:03 pm)
That's incorrect Stephen, before I modified the playgui I didn't have a mouse cursor at all and can look all over with mouse movements. After I modified the playgui I can no longer control my player with my mouse.

Randy it was missing and I did re-enter it but still no effect. It's no big deal because it's just a test game but I would imagine I'm going to run into this problem again.
#7
02/01/2007 (4:27 pm)
Quote:
That's incorrect Stephen, before I modified the playgui I didn't have a mouse cursor at all and can look all over with mouse movements. After I modified the playgui I can no longer control my player with my mouse.

That's because you need to implement a toggle, and in fact didn't need to change source code at all.
#8
02/01/2007 (4:36 pm)
A toggle? :) I added a text control to the playgui file to make a health counter, I had no intentions of changing the mouse settings.