|
| 01 Jul 2016 02:37 PM |
im making an anim editor but i need a UI slider and am having a hard time making one, anyone know how?
ninjman654 R$100 |
|
|
| Report Abuse |
|
|
|
| 01 Jul 2016 02:38 PM |
You mean something like this? http://wiki.roblox.com/index.php?title=API:Enum/EasingStyle |
|
|
| Report Abuse |
|
|
|
| 01 Jul 2016 03:01 PM |
no like when u use the Roblox's anim editor and u can look move through each frame
ninjman654 R$100 |
|
|
| Report Abuse |
|
|
KAAK82
|
  |
| Joined: 06 May 2014 |
| Total Posts: 1166 |
|
|
| 01 Jul 2016 03:02 PM |
Every time u move it, get both sides of the certain Axis u move it on, so on X Axis it would be like this
local left = Btn.AbsolutePosition.X local right = (Btn.AbsolutePosition + Btn.AbsoluteSize).X local start = Frame.AbsolutePosition.X local _end = (Frame.AbsolutePosition + Frame.AbsoluteSize).X local current = 0
Then u see if it's out of Bounds
if left < start then current = 0 elseif right > _end then current = _end - (right - left) else current = 1 - (Mouse.X / _end) end
And then u just move the button using 'current' as the Scale on the X Axis on this example. I haven't Scripted in so long, so tell me if I made a mistake :P
|
|
|
| Report Abuse |
|
|
| |
|
KAAK82
|
  |
| Joined: 06 May 2014 |
| Total Posts: 1166 |
|
|
| 01 Jul 2016 03:09 PM |
| Nb, tell me how it goes (I think I made an error somewhere, but the code looks kinda good so far) |
|
|
| Report Abuse |
|
|
|
| 01 Jul 2016 03:09 PM |
would u be interested in helping me make a module for the Anim Editor, mainly cosmetic stuff
ninjman654 R$100 |
|
|
| Report Abuse |
|
|
KAAK82
|
  |
| Joined: 06 May 2014 |
| Total Posts: 1166 |
|
|
| 01 Jul 2016 03:13 PM |
| Idk, I don't have Skype and without it, it's not as easy to Communicate :/ |
|
|
| Report Abuse |
|
|
|
| 01 Jul 2016 03:17 PM |
What about through Roblox
ninjman654 R$100 |
|
|
| Report Abuse |
|
|
KAAK82
|
  |
| Joined: 06 May 2014 |
| Total Posts: 1166 |
|
|
| 01 Jul 2016 03:19 PM |
| If I have Time, as I don't spend that much time on Roblox anymore :/ |
|
|
| Report Abuse |
|
|
|
| 01 Jul 2016 03:20 PM |
np u let me know
ninjman654 R$100 |
|
|
| Report Abuse |
|
|