Game Development Community

Change mouse cursor image

by Michael S · in Torque Game Builder · 01/03/2008 (3:10 am) · 3 replies

Is there any function to change our mouse cursor image ?
I look on the TGB Reference pdf but i don't find it

Thx

#1
01/03/2008 (6:34 am)
This isn't my code, it was lifted from some other place.

new GuiCursor(CustomCursor)
{
   hotSpot = "1 1";       // Set this to the X/Y coordinate of where you want the hotspot
   bitmapName = "~/client/images/crossHair";
};

Canvas.setCursor(CustomCursor);

Thanks go to Harold Brown for it.

www.garagegames.com/mg/forums/result.thread.php?qt=26952
#2
01/03/2008 (7:46 pm)
Thanks for the reply jason ^^
#3
05/18/2010 (10:54 am)
Does this code

" 1. new GuiCursor(CustomCursor)
2. {
3. hotSpot = "1 1"; // Set this to the X/Y coordinate of where you want the hotspot
4. bitmapName = "~/client/images/crossHair";
5. };
6.
7. Canvas.setCursor(CustomCursor); "

Go into the gui profile?