|
| 24 May 2015 02:38 PM |
Actually a half circle but
I want to make a speedometer SurfaceGUI that goes by a certain speed
like
local maxSpeed = 180
for i = 0, (maxSpeed/20) do -- Make TextLabels in a half-circle end |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 24 May 2015 02:40 PM |
Rotated frames :D
I script -~ chimmihc |
|
|
| Report Abuse |
|
|
|
| 24 May 2015 02:40 PM |
You would have to use 180 different TextLabels that are 1x1 pixels. Of course this is highly inefficient. Use an ImageLabel.
-𝒩 | Anticodist, Scripter |
|
|
| Report Abuse |
|
|
|
| 24 May 2015 02:41 PM |
@chim
I'll try that
@Anti
I want it to be maxSpeed/20
not 180 textlabels lol
& if I made an image, I'd have to make a different image for every speed. I want it to work with any maxSpeed that the car has |
|
|
| Report Abuse |
|
|
|
| 24 May 2015 02:42 PM |
Just make an image with a square hole in the middle and put a text label there. Use ZIndex for placement.
-𝒩 | Anticodist, Scripter |
|
|
| Report Abuse |
|
|
|
| 24 May 2015 02:45 PM |
Anti i don't think you understand what i'm looking for
http://www.roblox.com/games/204858633/New-Chassis-Development
look at the thumbnail of that
I just wanted to make it show the speed next to each tic thingy
like 0-20-40 |
|
|
| Report Abuse |
|
|
|
| 24 May 2015 02:45 PM |
Yes, and if you'd take a moment to read and understand what I am saying, you'd get it.
-𝒩 | Anticodist, Scripter |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 24 May 2015 02:46 PM |
Position would be origin + (0, cos(rad(angle)) * radius, 0, sin(rad(angle)) * radius); Text would be maxSpeed * (angle / 180); So you'd have a loop from 0 to 180 with a step of, well in your case 9.
Of course I'm on a phone so I might have done something incorrectly... |
|
|
| Report Abuse |
|
|
|
| 24 May 2015 02:52 PM |
cntkillme you just confused me so much lol
@anti
i don't understand why i need an image w/ a square hole in the middle |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 24 May 2015 02:54 PM |
en.wikipedia DOT org/wiki/Unit_circle mathsisfun DOT com/geometry/unit-circle.html mathsisfun DOT com/algebra/trig-interactive-unit-circle.html
The third link might connect everything you read together. |
|
|
| Report Abuse |
|
|
|
| 24 May 2015 02:54 PM |
Never mind. You obviously won't grasp it.
-𝒩 | Anticodist, Scripter |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 24 May 2015 02:57 PM |
| Anti I think he wants to actually CREATE the speedometer, he never said (or I don't remember reading) that he actually has a picture of the speedometer already. |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 24 May 2015 02:58 PM |
Just 180 frames positioned and rotated accordingly.
Pretty easy to do.
I script -~ chimmihc |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 24 May 2015 02:59 PM |
| He doesn't want 180, he wants 20 |
|
|
| Report Abuse |
|
|
|
| 24 May 2015 03:01 PM |
i'm really horrible with math, if i told you my geometry grades you'd all leave this thread
but i rotated the frames and that worked well |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 24 May 2015 03:01 PM |
The point of 180 is to make a smooth half circle :D
I script -~ chimmihc |
|
|
| Report Abuse |
|
|
|
| 24 May 2015 03:02 PM |
^ Going back to what I said. But of course, the OP doesn't attempt to ascertain anything.
-𝒩 | Anticodist, Scripter |
|
|
| Report Abuse |
|
|