| Mirage Source http://miragesource.net/forums/ |
|
| Hm.. http://miragesource.net/forums/viewtopic.php?f=201&t=2785 |
Page 1 of 1 |
| Author: | Matt [ Sun Sep 30, 2007 1:30 am ] |
| Post subject: | Hm.. |
I wanna use a custom cursor in my game. How do I go about changing that? I know William has it in K2H. |
|
| Author: | Aranshada [ Sun Sep 30, 2007 3:01 am ] |
| Post subject: | Re: Hm.. |
I believe there's a "cursor" property for the forms that can achieve this. |
|
| Author: | Rezeyu [ Sun Sep 30, 2007 3:27 am ] |
| Post subject: | Re: Hm.. |
It's right by the icon one isn't it? |
|
| Author: | Matt [ Sun Sep 30, 2007 1:00 pm ] |
| Post subject: | Re: Hm.. |
Well, I know you can do.. frmMirage.MousePointer = 99 ' 99 = custom cursor frmMirage.MouseIcon = LoadPicture(App.Path & "\GFX\cursor.ico") But I dunno if I gotta make the color around it transparent first in the program or not. Also, it wasn't centered, and the icon I made is 16x16, and it ended up being huge in th game. |
|
| Author: | Robin [ Sun Sep 30, 2007 1:07 pm ] |
| Post subject: | Re: Hm.. |
It needs to be 32x32 and you need to make it transparent in the icon program. |
|
| Author: | Matt [ Sun Sep 30, 2007 1:43 pm ] |
| Post subject: | Re: Hm.. |
Robin wrote: It needs to be 32x32 and you need to make it transparent in the icon program. William helped me with it. I got it working. Didn't have to be 32x32, and yes I had to make it transparent in Photo Shop. |
|
| Author: | Robin [ Sun Sep 30, 2007 1:44 pm ] |
| Post subject: | Re: Hm.. |
Mhh, I've always had to make it 32x32 to make the actual pointy bit be where the pointy bit of the cursor is. |
|
| Author: | Matt [ Sun Sep 30, 2007 1:48 pm ] |
| Post subject: | Re: Hm.. |
Robin wrote: Mhh, I've always had to make it 32x32 to make the actual pointy bit be where the pointy bit of the cursor is. Just make the pointy bit of the custom icon point directly center of the image itself. That way, the icon can be w/e size you want it. |
|
| Author: | Robin [ Sun Sep 30, 2007 2:25 pm ] |
| Post subject: | Re: Hm.. |
That's what I just said. But I needed it to be 32x32 to fit a 16x16 pointer into it |
|
| Author: | Matt [ Sun Sep 30, 2007 2:27 pm ] |
| Post subject: | Re: Hm.. |
Robin wrote: That's what I just said. But I needed it to be 32x32 to fit a 16x16 pointer into it Yes, but you said that it has to be 32x32. I was just saying that it doesn't have to be that exact size. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|