|
| 16 Aug 2013 11:53 PM |
| How do I found out the mouse's position when it's on/dragging a textbutton? |
|
|
| Report Abuse |
|
|
baheeg
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 72846 |
|
| |
|
baheeg
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 72846 |
|
| |
|
|
| 16 Aug 2013 11:59 PM |
| Can you give me an example of the mouse hover event? I can't find anything on the wiki about it. |
|
|
| Report Abuse |
|
|
baheeg
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 72846 |
|
| |
|
|
| 17 Aug 2013 12:10 AM |
No dice, tried this but it said it wasn't a valid member of TextButton.
b = script.Parent.Frame.Button hover = false
b.MouseHover:connect(function(x,y) if not hover then hover = true print(x) print(y) end delay(2, function() hover = false end) end)
|
|
|
| Report Abuse |
|
|
|
| 17 Aug 2013 12:13 AM |
| There is no such thing as "MouseHover" that's why. |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2013 12:14 AM |
| ^Hes right Its MouseEnter and MouseLeave |
|
|
| Report Abuse |
|
|
baheeg
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 72846 |
|
| |
|
| |
|
|
| 17 Aug 2013 12:16 AM |
NOO Y U COMMENT NOA I SUND RETURDED q.q
-- my last post was supposed to be for the person above the girl :p -- |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2013 12:16 AM |
| Are their parameters on the MouseEnter and MouseLeave events that I can use to find the mouse's location? |
|
|
| Report Abuse |
|
|
baheeg
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 72846 |
|
| |
|
|
| 17 Aug 2013 12:18 AM |
| Why does this have to be so hard, I just wanna make a simple button move along another textbutton without it going over the boundaries. >:( |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2013 12:19 AM |
http://wiki.roblox.com/index.php/Origin_(Property)
http://wiki.roblox.com/index.php/Hit_(Property)
http://wiki.roblox.com/index.php/X_(Property)
http://wiki.roblox.com/index.php/Y_(Property)
Although it's not on the gui, I believe you can use those to get the Mouse location. |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2013 12:19 AM |
http://wiki.roblox.com/index.php/Origin_(Property)
http://wiki.roblox.com/index.php/Hit_(Property)
http://wiki.roblox.com/index.php/X_(Property)
http://wiki.roblox.com/index.php/Y_(Property)
Although it's not on the gui, I believe you can use those to get the Mouse location. |
|
|
| Report Abuse |
|
|
| |
|
baheeg
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 72846 |
|
| |
|
|
| 17 Aug 2013 12:23 AM |
| Thanks, those wiki links actually helped. Just one more question (I probably sound like an idiot now), can I use those properties on a TextButton or other stuff like that? |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2013 12:26 AM |
No those properties are for mouse only (meaning you'll have to put the in the playergui or backpack) of them(Local too okay).
But you can probably find some way for it to work the way you want it.
Or you can use this: http://wiki.roblox.com/index.php/MouseMoved_(Event)
Which are made to work for textbuttons and is an event that is fired when the mouse is moved. :P |
|
|
| Report Abuse |
|
|
|
| 17 Aug 2013 12:28 AM |
| ^Lol, u r knot rtard to me c: |
|
|
| Report Abuse |
|
|
| |
|
| |
|