|
| 19 May 2015 12:00 AM |
Currently, my GUI (which is a count down GUI for the end of a minigame) is just a square. I want my GUI to become an ANALOG GUI so that the arm has to spin a full circle before the time limit is up. How do I do that? Like I said, I already have the script and everything...
Imma' Firin' Ma' Laza' |
|
|
| Report Abuse |
|
|
CrowClaws
|
  |
| Joined: 04 Jul 2010 |
| Total Posts: 4466 |
|
|
| 19 May 2015 12:03 AM |
lol a timing script would be really ez
Making it analog is gonna be hard.
Your gonna have to do lots of math. |
|
|
| Report Abuse |
|
|
|
| 19 May 2015 12:18 AM |
That doesn't help! q.q
Imma' Firin' Ma' Laza' |
|
|
| Report Abuse |
|
|
daireb
|
  |
| Joined: 16 Nov 2012 |
| Total Posts: 726 |
|
|
| 19 May 2015 12:39 AM |
Omg, division?! So hard... Maybe even a % or two!
To make your clock circular I think you will have to use an imageLabel. I don't think you can rotate them either to make the hands :P. I would check, but I don't have my pic right now. Don't give up hope yet, though! |
|
|
| Report Abuse |
|
|
mycheeze
|
  |
| Joined: 27 Jun 2011 |
| Total Posts: 6748 |
|
|
| 19 May 2015 01:32 AM |
@dair, bb wot is the '%' used 4 again?
Also this is simple stuff with the rotation property for gui objects.
It is as easy as having an image where it is a linear line pointing from up to down, but once it reaches the middle, anything lower is transparent.
This way all you have to do is use the rotate property, addition, subtraction and nothing more. |
|
|
| Report Abuse |
|
|
daireb
|
  |
| Joined: 16 Nov 2012 |
| Total Posts: 726 |
|
|
| 19 May 2015 02:00 AM |
Oh, I didn't know you could rotate guy objects, If that's the case, then it will be easy enough.
% Is the modulo operation. It gives the remainder when you divide the number by the other number EG
28 % 5 = 3
You'll need that if you want global time between servers, or local time for just someone's computer. (os.time() and tick())
You'll even need it if you want a continuous counter, instead of having it reset whenever the time is bigger than 12 Heck, you could just even use it to not need an if statement after the variable increment. |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 19 May 2015 02:10 AM |
| You need a circular ImageFrame and a Frame, and then rotate it max/current*360 degrees at each step |
|
|
| Report Abuse |
|
|
|
| 19 May 2015 04:45 PM |
I'm absolutely stupid when it comes to GUI's. I know this is asking too much but would any of you be willing to quickly do that for me? I'll give you the script I have! :)
Imma' Firin' Ma' Laza' |
|
|
| Report Abuse |
|
|
|
| 19 May 2015 04:47 PM |
| You could probably rework one of those speedometers for cars that the hand turns on how fast your going. |
|
|
| Report Abuse |
|
|