Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hm..
#1
I wanna use a custom cursor in my game. How do I go about changing that? I know William has it in K2H.
Reply
#2
I believe there's a "cursor" property for the forms that can achieve this.
Reply
#3
It's right by the icon one isn't it?
Reply
#4
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.
Reply
#5
It needs to be 32x32 and you need to make it transparent in the icon program.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#6
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.
Reply
#7
Mhh, I've always had to make it 32x32 to make the actual pointy bit be where the pointy bit of the cursor is.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#8
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.
Reply
#9
That's what I just said.

But I needed it to be 32x32 to fit a 16x16 pointer into it Tongue
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#10
Robin Wrote:That's what I just said.

But I needed it to be 32x32 to fit a 16x16 pointer into it Tongue

Yes, but you said that it has to be 32x32. I was just saying that it doesn't have to be that exact size.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)