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 / mouse coordinates

Author
Message
Cemetery Ridge
17
Years of Service
User Offline
Joined: 23rd Mar 2007
Location:
Posted: 31st Mar 2007 02:42
what can i put in my main loop that will display the location on the mouse pointer?
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 31st Mar 2007 05:31
in essence its this...

text 1,1,"mx:"+STR$(mousex())+" | "+"my:"+STR$(mousey())

example below



Cemetery Ridge
17
Years of Service
User Offline
Joined: 23rd Mar 2007
Location:
Posted: 31st Mar 2007 07:07


The model works but i cant get the click to work
Quisco DaLuse
17
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: USA
Posted: 31st Mar 2007 07:46
I would lose some of the brackets:


You idiots! You've captured their stunt doubles!
Cemetery Ridge
17
Years of Service
User Offline
Joined: 23rd Mar 2007
Location:
Posted: 31st Mar 2007 08:06
thanks that worked
Quisco DaLuse
17
Years of Service
User Offline
Joined: 3rd Feb 2007
Location: USA
Posted: 31st Mar 2007 17:29
Np

You idiots! You've captured their stunt doubles!
TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 2nd Apr 2007 06:08 Edited at: 2nd Apr 2007 06:09
Cemetery Ridge:

It's worth mentioning that your example snippet contains a problem (unless it's only example code and not used in your program).

As it's shown, you are loading the object each time around the loop - some sixty or so times per second - and this isn't advisable.

You should move the Load Object line out of the loop as in:



TDK_Man

Login to post a reply

Server time is: 2024-11-25 22:46:34
Your offset time is: 2024-11-25 22:46:34