generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: How do I make a Circle w/ TextLabels?

Previous Thread :: Next Thread 
verbalAKspray is not online. verbalAKspray
Joined: 09 Jul 2014
Total Posts: 23685
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 is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
24 May 2015 02:40 PM
Rotated frames :D


I script -~ chimmihc
Report Abuse
Anticodist is not online. Anticodist
Joined: 05 Feb 2014
Total Posts: 1191
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
verbalAKspray is not online. verbalAKspray
Joined: 09 Jul 2014
Total Posts: 23685
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
Anticodist is not online. Anticodist
Joined: 05 Feb 2014
Total Posts: 1191
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
verbalAKspray is not online. verbalAKspray
Joined: 09 Jul 2014
Total Posts: 23685
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
Anticodist is not online. Anticodist
Joined: 05 Feb 2014
Total Posts: 1191
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 is not online. 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
verbalAKspray is not online. verbalAKspray
Joined: 09 Jul 2014
Total Posts: 23685
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 is not online. 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
Anticodist is not online. Anticodist
Joined: 05 Feb 2014
Total Posts: 1191
24 May 2015 02:54 PM
Never mind. You obviously won't grasp it.



-𝒩 | Anticodist, Scripter
Report Abuse
cntkillme is not online. 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 is not online. 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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
24 May 2015 02:59 PM
He doesn't want 180, he wants 20
Report Abuse
verbalAKspray is not online. verbalAKspray
Joined: 09 Jul 2014
Total Posts: 23685
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 is not online. 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
Anticodist is not online. Anticodist
Joined: 05 Feb 2014
Total Posts: 1191
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image