QJD1996
|
  |
| Joined: 20 Jan 2009 |
| Total Posts: 1472 |
|
|
| 27 Oct 2015 02:14 PM |
Basically, I have this "Labeler" thing in my game that shows the name of what you're hovering over. Instead of putting it in a loop, I used mouse.Idle() which basically is like a loop.
What do you guys think? |
|
|
| Report Abuse |
|
|
|
| 27 Oct 2015 02:21 PM |
| An efficient choice is to detect when the mouse STOPS moving, and then show it until it BEGINS to move again. |
|
|
| Report Abuse |
|
|
QJD1996
|
  |
| Joined: 20 Jan 2009 |
| Total Posts: 1472 |
|
|
| 27 Oct 2015 02:30 PM |
| Does Roblox have an event for when the mouse stops moving? |
|
|
| Report Abuse |
|
|
|
| 27 Oct 2015 02:45 PM |
"An efficient choice is to detect when the mouse STOPS moving,"
That's exactly what mouse.Idle does |
|
|
| Report Abuse |
|
|
QJD1996
|
  |
| Joined: 20 Jan 2009 |
| Total Posts: 1472 |
|
|
| 27 Oct 2015 02:57 PM |
Actually, it doesn't. It may be a glitch or something, but try it. It'll constantly print out values if you test it. Here's an example of what to try
mouse = game.Players.LocalPlayer:GetMouse()
mouse.Idle() print(mouse.Target) end
It'll still print stuff even you are moving the mouse. |
|
|
| Report Abuse |
|
|
|
| 27 Oct 2015 04:18 PM |
| mouse.idle will constantly fire whenever the mouse isn't moving. (Which may occur while moving if you move too slow.) |
|
|
| Report Abuse |
|
|