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
 

Re: [GUI] 2D Vector Directions(and slope

Previous Thread :: Next Thread 
chaoticregandpledge is not online. chaoticregandpledge
Joined: 04 Dec 2009
Total Posts: 2894
15 Mar 2013 01:47 AM
Alright, so my current problem should be pretty simple to solve, but I'm functioning at about 20% capacity right now, due to it currently being ~2:43 AM.

Anyways, I have GUI frames that I want to move it a random direction across the screen. How would I find the correct slope(s) that have 5 degree intervals? Like, to fill an entire circle. Ugh, I can tell that I've explained this badly, but there are 360 degrees in a circle, and I need the slopes of 72 lines(in 5 degree intervals(360/5=72)).

Any help? If you need it explained again, i'd understand :p
Report Abuse
einsteinK is not online. einsteinK
Joined: 22 May 2011
Total Posts: 1015
15 Mar 2013 02:39 AM
I'm good at math, but not that good -.-

You should try something like:

pos = UDim2.new(0,1*cos(degree),0,1*sin(degree))
(putting math. before cos and sin)
Report Abuse
chaoticregandpledge is not online. chaoticregandpledge
Joined: 04 Dec 2009
Total Posts: 2894
15 Mar 2013 02:48 AM
Sorry for not posting earlier, but I have already accomplished this. Thanks for trying to help, at least :)
Report Abuse
chaoticregandpledge is not online. chaoticregandpledge
Joined: 04 Dec 2009
Total Posts: 2894
15 Mar 2013 03:01 AM
If you're curious, this is the place I needed this tidbit of information for.
Report Abuse
chaoticregandpledge is not online. chaoticregandpledge
Joined: 04 Dec 2009
Total Posts: 2894
15 Mar 2013 03:01 AM
4:01 AM, please excuse me for not previously posting the link. >.<

http://www.roblox.com/Asteroids-place?id=22678021
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