Mouse Positionby Forum_account |
To download this library for your Linux/Mac installation, enter this on your command line:
DreamDownload byond://Forum_account.MousePosition##version=3 Emulator users, in the BYOND pager go to File | Open Location and enter this URL:byond://Forum_account.MousePosition##version=3 Provides a way to get pixel-precise mouse coordinates. [More]
|
Advertisement Yut Put: (Jan 1 2012, 7:57 pm)
it doesn't allow your game to use the object parameter in mouse procs because it always picks up the object as mouse_tracker which is just short of impossible for the me to work around lol
Forum_account: (Sep 28 2011, 7:21 am)
I haven't done any testing so I have no idea. My guess is that it would cause significant CPU usage with 100 players because having 100 players by itself is enough to cause decent CPU usage no matter what they're doing.
If performance is that important you can adjust the resolution used so that mouse events will be detected every 8, 4, 2, or 1 pixel that the mouse moves. You lose some precision but decrease the CPU usage. Avainer1: (Sep 28 2011, 1:15 am)
Does this use a lot of CPU? Lets say a game with about 70-100 players using it.
Gigimoi: (Sep 18 2011, 5:14 pm)
Good to know, I'll be using this now <3
|
Copyright © 2013 BYOND.
All rights reserved.

Personally half my projects use 64 as the icon size, but I have a project that uses 16 as well. All it would need is an if() check and two icons, or perhaps just one file that uses the icon size as a variable for the icon state that's used. If you want. I'll make the file (I kind of HAVE to at this point) and I'll provide a public link for you to download it and you can just modify the code to support it?
It's up to you, I'm just letting you know 0__0