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 / Custom Cursor

Author
Message
vgking101
20
Years of Service
User Offline
Joined: 10th Apr 2005
Location: Virginia
Posted: 20th Apr 2005 12:51
How can i make a custom cursor appear on the screen?

thanks
waffle
22
Years of Service
User Offline
Joined: 9th Sep 2002
Location: Western USA
Posted: 20th Apr 2005 13:26
its easier/harder than you think

step 1 - hide mouse
ooooo that takes a whole command

step 2 - display a sprite at current mouse position
oooo that takes a whole command too

that should get you going a wee bit.
Slayer93
20
Years of Service
User Offline
Joined: 5th Aug 2004
Location: I wish I knew
Posted: 21st Apr 2005 10:16
I made a code on that
http://darkbasic.thegamecreators.com/?m=codebase_view&i=94b33a7d0b85072121cc2f9d0fad6b10
no media

NARUTO IS THE NINJA.......not really
Link102
20
Years of Service
User Offline
Joined: 1st Dec 2004
Location: On your head, weeeeee!
Posted: 21st Apr 2005 17:54
mee too:

but the best way is to create a plain and texture it (I think), dark basic's 3d commands are faster than it's sprite commands
blanky
20
Years of Service
User Offline
Joined: 3rd Aug 2004
Location: ./
Posted: 23rd Apr 2005 07:15 Edited at: 23rd Apr 2005 07:16
`Doesn't matter really, but this is how *****I**** would do it.

sync on
sync rate 0

`Can't believe I actually *FORGOT* this first time round..
hide mouse

`299 can be whatever, mouse.bmp can be whatever
load image "Mouse.bmp",299

do
`Activate black=transparent option
paste image 299,mousex(),mousey(),1
sync
loop

That's what I'd do. As long as your cursor started at exactly the top-left corner of the mouse.bmp bitmap, it would be PERFECT. Included is my favourite mouse cursor I made. ^_^

(So it's a PNG. Who cares? It works, right?)

How's my typing? Phone 0800-GO-TO-HELL

Attachments

Login to view attachments

Login to post a reply

Server time is: 2025-05-23 11:32:01
Your offset time is: 2025-05-23 11:32:01