|
-
Jan 9th, 2000, 09:59 AM
#1
Thread Starter
New Member
I'm writing a game which has to do with hunting. What I want to try to do is make the mouse pointer a crosshair, but the thing is that the crosshair I want is a .gif file.
Is there any way to make the mouse icon/pointer use that .gif file, so that when I click on my target, it uses the center of the image as the spot where the mouse would point, and either hits or misses the target.
I hope I described it enough for someone to help me out.
Thanks
-BLiNDPiG
-
Jan 9th, 2000, 03:49 PM
#2
PowerPoster
Well, I wouldn't try to take a gif for your cursor, there are better ways to draw 1Bit transparency...
I don't know which method you're using to draw your game, so I'll show you how I did it:
First create an invisible picture box with [AutoRedraw = true] and [BorderStyle = 0].
Take your cursor and create the mask picture (That's why the gifs are useless, you dont use their transparency). U can use my program if you don't know why, just send me a mail.
Load the cursor into the box.
Then u can use for example BitBlt (API) to draw the cursor, first the mask (vbSrcPaint) and then the cursor (vbSrcAnd).
Hope you'll understand this, ask me for more help.
------------------
Fox
-
Jan 10th, 2000, 07:56 AM
#3
Hyperactive Member
-
Jan 10th, 2000, 03:21 PM
#4
-
Jan 12th, 2000, 06:31 PM
#5
Registered User
Why not just to get Microangelo and draw 256 color icon and rename it to .cur? Much easier and it works.
In microangelo, it is possible to make even 50x50 icons or whatever you want.
Hopefully this is usefull for others, too. I'm not sure does this work, but I can try myself if you want to.
Vesa Piittinen
-
Jan 13th, 2000, 06:15 AM
#6
Hyperactive Member
-
Jan 13th, 2000, 07:12 PM
#7
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|