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 / mouseX and mouseY not working

Author
Message
Mussi
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 6th Dec 2003 16:36 Edited at: 6th Dec 2003 16:38
well I got a prob, I need to get the mouseX and mouseY position but the commands aren't working or something. here is a sample code:



Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 80GB HD 7200rmp U133, Geforce 4 Ti4400 128mb ddr sdram
Mussi
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 6th Dec 2003 16:41
hmm... very strange, when I only execute that code it works, but when I put in top of my code for my game it doesn't , does someone knows whats the prob?

Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 80GB HD 7200rmp U133, Geforce 4 Ti4400 128mb ddr sdram
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 6th Dec 2003 18:12
information is too obscure, those commands work here.
check your code again.
KNau
21
Years of Service
User Offline
Joined: 25th Nov 2002
Location: Canada
Posted: 6th Dec 2003 19:49
If it works here but not in your game code then there is a problem with the structure of your game code, probably in updating the display.

http://www.canceriannewmedia.com
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 6th Dec 2003 20:26
are you using mousex() and mousey() elsewhere in your game code? so you've used these commands in another location in the code aswell as that peice of code there?
apparently using mousex()/mousey() more than once in a program will cause them to output a value of 0, which isn't good. the way round this is to assign mousex() and mousey() to variables such as mx and my then using these variables instead.


GO TO THE ETERNAL DESTINY FORUMS!!! http://forums.eternaldestinyonline.com
Do it now!!!
the_winch
21
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 6th Dec 2003 21:17 Edited at: 6th Dec 2003 21:17
You might have come aone of dbpros really odd bugs.
Make sure you haven't changed the window title and comment out any code that uses anything other than integers, floats and strings. Also deleteing the .pro file and letting the ide make a new one is worth a try.

If it still doesn't work it's just a matter of commenting out code until you find the code that stops the mouse commands from working.

dbpro : p166mmx @ 233 : 256mb : sb 128pci : sis onboard
Mussi
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 6th Dec 2003 22:25 Edited at: 6th Dec 2003 22:25
deleted the .dbpro file and made a new one, worked perfectly after that, but why is this so buggy?

Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 80GB HD 7200rmp U133, Geforce 4 Ti4400 128mb ddr sdram

Login to post a reply

Server time is: 2024-09-21 11:40:11
Your offset time is: 2024-09-21 11:40:11