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: Making a Hexagon in GUI Objects

Previous Thread :: Next Thread 
aboy5643a is not online. aboy5643a
Joined: 20 Nov 2010
Total Posts: 2785
25 Sep 2011 08:10 PM
D: I can't even begin to guess how to make a regular hexagon using 1 pixel wide frames and iterating them 40 times with a dynamic position and size to create a hexagon... Formulas anyone??

"I like dooly-bops" -- ArceusInator
Report Abuse
eyeontheprizeREBOOT is not online. eyeontheprizeREBOOT
Joined: 30 Jan 2011
Total Posts: 1555
25 Sep 2011 08:14 PM
http://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm
Report Abuse
aboy5643a is not online. aboy5643a
Joined: 20 Nov 2010
Total Posts: 2785
25 Sep 2011 08:17 PM
I'm still trying to see how that article applies ._. I'll just make a table or something... Or hand draw them o.o

"I like dooly-bops" -- ArceusInator
Report Abuse
eyeontheprizeREBOOT is not online. eyeontheprizeREBOOT
Joined: 30 Jan 2011
Total Posts: 1555
25 Sep 2011 08:19 PM
See a little harder bro.
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
25 Sep 2011 08:20 PM
You don't realize how it applies?

- "Go outside, the graphics are amazing!"
Report Abuse
Aaaboy97 is not online. Aaaboy97
Joined: 05 Apr 2009
Total Posts: 6612
25 Sep 2011 08:21 PM
    local function hexagon(center, radius)
        local hex = {}
        for T = math.pi/3, math.pi*2, math.pi/3 do
            hex[#hex + 1] = center + Vector2.new(math.sin(T)*radius, math.cos(T)*radius)
        end
        return hex
    end

Do what you want with it.
Report Abuse
aboy5643a is not online. aboy5643a
Joined: 20 Nov 2010
Total Posts: 2785
25 Sep 2011 08:31 PM
I'm not sure what that's returning... Care to explain it??

"I like dooly-bops" -- ArceusInator
Report Abuse
DonnyTheDemented is not online. DonnyTheDemented
Joined: 29 May 2010
Total Posts: 1413
25 Sep 2011 08:32 PM
It returns the corners of a hexagon
lrn2trig
Report Abuse
aboy5643a is not online. aboy5643a
Joined: 20 Nov 2010
Total Posts: 2785
25 Sep 2011 08:33 PM
Ah. I don't know trig O.o I've only taken Alg I, II, Geo, and I'm in Statistics..

"I like dooly-bops" -- ArceusInator
Report Abuse
DonnyTheDemented is not online. DonnyTheDemented
Joined: 29 May 2010
Total Posts: 1413
25 Sep 2011 08:35 PM
Y you skipz the trigs and the calculus?
I will be takin ap stats next year, is it hard?
Report Abuse
Aaaboy97 is not online. Aaaboy97
Joined: 05 Apr 2009
Total Posts: 6612
25 Sep 2011 08:36 PM
I haven't taken trig yet.

Experimenting with the trig functions on a graphing calculator is fun.
Report Abuse
aboy5643a is not online. aboy5643a
Joined: 20 Nov 2010
Total Posts: 2785
25 Sep 2011 08:38 PM
@aaaboy

I figured, considering you're younger than me O.O Hmmm... I'm trying to come up with something concise... I've done this with triangles before (non-regular) Something where I iterate from 0 to 40 as an x position and then return the y size and y position...

"I like dooly-bops" -- ArceusInator
Report Abuse
thegenius is not online. thegenius
Joined: 03 Oct 2008
Total Posts: 3838
25 Sep 2011 08:38 PM
Draw a whole bunch of squares varying in size within a hexagon shape until they look like a hexagon. (Relate to fractals.)

(Note: Math FTW) (Also, thegenius is insane.)
Report Abuse
aboy5643a is not online. aboy5643a
Joined: 20 Nov 2010
Total Posts: 2785
25 Sep 2011 08:39 PM
@Donny

It's pretty boring... Lots of writing and a lot of logic over math. It's not really a math class at all... But I can't take IB this year so I was told to take this by my counselor...

"I like dooly-bops" -- ArceusInator
Report Abuse
DonnyTheDemented is not online. DonnyTheDemented
Joined: 29 May 2010
Total Posts: 1413
25 Sep 2011 08:44 PM
Hmm, thanks.

But yea, use what aaaboy said + eye's post and you will get your hexagon.
if you mess with the interval you can then rotate your hexagon
Report Abuse
aboy5643a is not online. aboy5643a
Joined: 20 Nov 2010
Total Posts: 2785
25 Sep 2011 09:15 PM
I figured it out on my own... Using one conditional and one loop... And like basic math T_T

"I like dooly-bops" -- ArceusInator
Report Abuse
Oysi is not online. Oysi
Joined: 06 Jul 2009
Total Posts: 9058
26 Sep 2011 09:58 AM
[ Content Deleted ]
Report Abuse
startheft is not online. startheft
Joined: 05 Jan 2012
Total Posts: 2
09 Jan 2012 12:04 PM
i know use sic triangles and stick them to gether thats how i make em!
Report Abuse
startheft is not online. startheft
Joined: 05 Jan 2012
Total Posts: 2
09 Jan 2012 12:04 PM
sorry typo six not sic lol
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
09 Jan 2012 12:41 PM
Anaminus's gloo library can make awesome polygons with not much frames. It can literally make a checkmark with only 500 frames..
Report Abuse
aboy5643a is not online. aboy5643a
Joined: 20 Nov 2010
Total Posts: 2785
09 Jan 2012 03:29 PM
Y U BAMP

Btw, 500 frames is a ton.
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
10 Jan 2012 05:14 PM
Is there even a way to rotate a imagelabel/button/GUI?

~ 10 chicken goto 20 wing ~
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
10 Jan 2012 05:19 PM
Not on ROBLOX, without investing in many uploaded decals, or using lots of frames.
Report Abuse
Techboy6601 is not online. Techboy6601
Joined: 29 Jun 2009
Total Posts: 4914
10 Jan 2012 05:25 PM
Frames? How do those help? Can you rotate frames?
Report Abuse
Quenty is not online. Quenty
Joined: 03 Sep 2009
Total Posts: 9316
10 Jan 2012 05:26 PM
Nope. You basically have to create your Frame so it rotates.
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