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 » Scripting Helpers
Home Search
 

Script a GUI circle.

Previous Thread :: Next Thread 
flatline115 is not online. flatline115
Joined: 29 Jul 2013
Total Posts: 7826
17 Jun 2014 02:17 AM
I do not really need code, but an effective algorithm to draw one. The one's I've tried haven't panned out... At all. They do not do what they're advertised to do, whether that's my fault of not understanding the algorithm's or not is unknown to me.

However if somebody could point me in the right direction to one that'd be great.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
17 Jun 2014 02:19 AM
You could do something like:

local createPoint = function(x, y)
--create frame, size being like 0, 2, 0, 2 or whatever
end;

for angle = math.pi/180, 2 * math.pi, math.pi/180 do
createPoint(math.cos(angle) * 5, math.sin(angle) * 5);
end
Report Abuse
flatline115 is not online. flatline115
Joined: 29 Jul 2013
Total Posts: 7826
17 Jun 2014 02:27 AM
That doesn't work and as I stated, I do not really want code. However I think another go at bresnham's may do what I want.
Report Abuse
oxcool1 is not online. oxcool1
Joined: 05 Nov 2009
Total Posts: 15444
17 Jun 2014 02:28 AM
What cntkillme said.

Note that the circle will have a radius of 5, you can change that though by changing the number.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
17 Jun 2014 02:28 AM
I didn't see you state it but this should work, anyways have fun.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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