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.

Newcomers DBPro Corner / using a picture as a mouse cursor

Author
Message
xxelixx
15
Years of Service
User Offline
Joined: 6th Dec 2008
Location: CodeLand
Posted: 11th Jul 2009 04:20
I was wondering how you make a picture go where your mouse is.
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 11th Jul 2009 08:24
The mouse coordinates are tracked with the MOUSEX() and MOUSEY() and their always updated so just add those commands to the x and y coordinates for a sprite.



xxelixx
15
Years of Service
User Offline
Joined: 6th Dec 2008
Location: CodeLand
Posted: 12th Jul 2009 00:12
Thanks
Grog Grueslayer
Valued Member
19
Years of Service
User Offline
Joined: 30th May 2005
Playing: Green Hell
Posted: 12th Jul 2009 05:24
Np

Stig Design Stig Magne
18
Years of Service
User Offline
Joined: 23rd Mar 2006
Location: Norway
Posted: 23rd Jul 2009 22:02 Edited at: 23rd Jul 2009 22:04
in DBC i have used this code
it might work in DBPro aswell i think and its easy to under stand
for use the mouse x&y variable for buttons aswell


oops i missed
before do loop
"Sync on" "Sync Rate 30 or 60"
inside loop at the end
"sync"

**StigDesign** cheap 3D Modell Pack`s at www.stigdesign.piczo.com (for Home&Comersial use)soon other aplication`s
ShaunRW
DBPro Developer
16
Years of Service
User Offline
Joined: 7th Jan 2008
Location: Brisbane, Australia
Posted: 28th Jul 2009 08:45
@Stig - Why do you have Hide Mouse in side a loop? Couldn't you just put it before the loop? Or is that how DBC works?

also, can't you load the image in as a cursor in the editor? I have seen the Cursor tab sitting there but never bothered to try it out.


Stig Design Stig Magne
18
Years of Service
User Offline
Joined: 23rd Mar 2006
Location: Norway
Posted: 28th Jul 2009 09:13
@ShaunRW
yes i know in dbp you dont have to i for gotten that
in dbc you have to if you whant to use a custom cursor
sadly :l

**StigDesign** cheap 3D Modell Pack`s at www.stigdesign.piczo.com (for Home&Comersial use)soon other aplication`s

Login to post a reply

Server time is: 2024-11-24 04:57:30
Your offset time is: 2024-11-24 04:57:30