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.

Code Snippets / Detect if mouse is out of screen area function.

Author
Message
DemonicPeon
20
Years of Service
User Offline
Joined: 19th May 2003
Location:
Posted: 20th May 2003 02:52
Here is the function to detect if a mouse exceeds the screen borders, as used in my RTS.
Contact me at demonicpeon@yahoo.com
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 20th May 2003 03:49
Couldnt you use...screenwidth() and screenheight() ? Cheers nice job.

BTW...Welcome to the forums

RPGamer

Current Project: Eternal Destiny
Questions? Comments? Suggestions? Go to the Eternal Destiny Forum!
DemonicPeon
20
Years of Service
User Offline
Joined: 19th May 2003
Location:
Posted: 20th May 2003 03:53
Thankyou for the feedback RPGamer. Although you could use the screenwidth() and screenheight() commands, it would be difficult if the map/screen size is user definable.

John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 20th May 2003 14:45
Yep good point

RPGamer

Current Project: Eternal Destiny
Questions? Comments? Suggestions? Go to the Eternal Destiny Forum!

Login to post a reply

Server time is: 2024-04-23 09:07:32
Your offset time is: 2024-04-23 09:07:32