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 Problem (Printing position to screen problem)

Author
Message
Reality Forgotten
FPSC Reloaded TGC Backer
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Wichita Falls TX
Posted: 5th Jan 2008 19:25
Here is the code



This has worked for me in the past, though not this time.

The set up:

I have the window set 487 x 350, image is actually 487 x 300 but added the extra 50 for the usual print to screens that I need while writing this. I have set the cursor to the lower portion of the window and have added the correct code in to return the position of the mouse and to print it to the screen but it doesn't print. When I remove the sprite it will print but it shows that the mouse never moves..

So basically this is what I need help with or at least pointed in
the right direction.

1. Why the mouse cords will not print to the screen
2. Why the text will not show up when the sprite is not "rem'd" out
3. If I add "sync on" "sync rate" it will load the animation but will not show the sprite..

Any help will be greatly appreciated..

Cheers,
Dave


Zergei
19
Years of Service
User Offline
Joined: 9th Feb 2005
Location: Everywhere
Posted: 5th Jan 2008 22:39
You've got a "wait key" command in the loop, this will stop the program until you press any key, and that means no screen refresh or anything.

Further on my stuff at...
TurboSquid.com
The3dStudio.com
Reality Forgotten
FPSC Reloaded TGC Backer
18
Years of Service
User Offline
Joined: 28th Dec 2005
Location: Wichita Falls TX
Posted: 5th Jan 2008 23:21 Edited at: 5th Jan 2008 23:22
got it sorted out thanks to TeHCoderer. Thanks for the reply...

Instead of using



I needed to use



The sync issue was fixed, so all is good..


thansk for the reply zergei!

Cheers,
Dave


Login to post a reply

Server time is: 2024-11-25 10:40:33
Your offset time is: 2024-11-25 10:40:33