Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / how do I change mouse pointer?

Author
Message
Evarcha
20
Years of Service
User Offline
Joined: 7th Jan 2005
Location: Preston, England
Posted: 30th Apr 2005 23:37
I am just curious as to how I change the default dark basic mouse pointer into something more in keeping with my game? What file type must it be etc? can I ghost it too?
ChozoMufin
20
Years of Service
User Offline
Joined: 19th Apr 2005
Location: Columbus, OH
Posted: 1st May 2005 00:52
you could try just making a bitmap of a crosshair or whatever you wanted it to look like, hide the mouse pointer, and in your main loop paste the image to the mouse coordinates.
Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 1st May 2005 01:11 Edited at: 1st May 2005 01:12


I posted this before, please try to search the forums before posting a question

please reply
Evarcha
20
Years of Service
User Offline
Joined: 7th Jan 2005
Location: Preston, England
Posted: 1st May 2005 01:22
Thanks Chozo555
Link102, I search the forums for 'mouse pointer' but it came up blank, well, one other posting that had little to do with what I was searchin for. Thankyou for your code donation.
Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 1st May 2005 03:23 Edited at: 1st May 2005 03:24
use other seartch prases like cursor or mouse

please reply
Captain America
20
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Here
Posted: 2nd May 2005 10:28 Edited at: 2nd May 2005 10:29
I wanted to do this to.
I made up this code to suit my needs:



Hope that helps you as much as it did me!

Cheers,
Capt. America
Captain America
20
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Here
Posted: 2nd May 2005 10:38
You could also try this:

circle mousex(),mousey(),6
line mousex()-5,mousey(),mousex()+5,mousey()
line mousex(),mousey()-5,mousex(),mousey()+5

It makes a relly cool little crosshair for a shootum up game!

Cheers,
Capt. America
Evarcha
20
Years of Service
User Offline
Joined: 7th Jan 2005
Location: Preston, England
Posted: 3rd May 2005 20:03
Thnaks very much Captain America! I must confess to being VERY new to Dark basic and I am playing with 3d commands for fun for now, I am learing the structure of programming as every beginner should but I can't help wanting to have somethin that looks nice to play around with. I will give your code a go and see what happens.

Thanks again.
Slayer93
20
Years of Service
User Offline
Joined: 5th Aug 2004
Location: I wish I knew
Posted: 4th May 2005 06:07 Edited at: 4th May 2005 06:08
I made a code a while ago for a custom cursor
http://www.thegamecreators.com/?m=codebase_view&i=94b33a7d0b85072121cc2f9d0fad6b10

NARUTO IS THE NINJA.......not really
Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 4th May 2005 08:46
there is room for improvement
what do you think is faster? drawing the cursor every loop or drawing it once and change it's position?
And when you use sync in your loop be sure to put "sync on" at the top of your code, ortherwise it won't work

please reply
Slayer93
20
Years of Service
User Offline
Joined: 5th Aug 2004
Location: I wish I knew
Posted: 29th May 2005 04:24
In my games i put a function but it was so small. I always put sync on but i guess i forgot on this code

NARUTO IS THE NINJA.......not really
Captain America
20
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Here
Posted: 29th May 2005 05:49
you could also just make a sphere ghost it and then every loop put it at the mouse co-ordinates. Thats what I did for the main menu for a FPS game I made. It looked pretty cool!!

Cheers,
Capt. America

Login to post a reply

Server time is: 2025-06-02 16:15:37
Your offset time is: 2025-06-02 16:15:37