Problem setting cursor On in-game
by Hugo Mardolcar · in Torque Game Engine · 10/03/2003 (3:01 am) · 3 replies
I was happily following the Object Selection tutorial (http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2173) and, after all the changes, I couldn't simply turn the cursor on...
It appears that CursorOn() doesn't work... I tried Canvas.cursorOn() and nothing... then I had an inspiration and tried schedule(1000,0,CursorOn); and it worked!
Now, this is an ugly walkaround and I want to know what the real problem is, I want to be able to press a key and toggle the cursor on/off... is there a new function that does this? Or am I just being dumb somewhere?
Thanks for your comments
It appears that CursorOn() doesn't work... I tried Canvas.cursorOn() and nothing... then I had an inspiration and tried schedule(1000,0,CursorOn); and it worked!
Now, this is an ugly walkaround and I want to know what the real problem is, I want to be able to press a key and toggle the cursor on/off... is there a new function that does this? Or am I just being dumb somewhere?
Thanks for your comments
#3
10/03/2003 (7:40 am)
Ok, forget this thread, I simply had the moveMap.bind command in the wrong place, and when you type cursorOn in the console, it doesn't work because the cursor is already on... (duh)
Associate Kevin Ryan
Top Meadow Inc.
This funtion is in the file: example\common\client\cursor.cs
Looking at the function it is doing a little more than just a Canvas.cursorOn() call.