PT
Developer Forums
Register
Login
Code Snippets
->
Detect if mouse is out of screen area function.
<
1
>
D
DemonicPeon
Joined:
19th May 2003
Location:
Posted:
20th May 2003 2:52
Here is the function to detect if a mouse exceeds the screen borders, as used in my RTS.
Contact me at [url=mailto:demonicpeon@yahoo.com]demonicpeon@yahoo.com[/url]
J
John H
Joined:
14th Oct 2002
Location:
Burlington, VT
Posted:
20th May 2003 3:49
Couldnt you use...screenwidth() and screenheight() ?
Cheers nice job.
BTW...Welcome to the forums
RPGamer
D
DemonicPeon
Joined:
19th May 2003
Location:
Posted:
20th May 2003 3: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.
J
John H
Joined:
14th Oct 2002
Location:
Burlington, VT
Posted:
20th May 2003 14:45
Yep good point
RPGamer