KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 04 Jul 2015 08:31 PM |
oki have a simple map-
grass with paths on it
The path is randomly generated and has a random position.
So, anwaysy, i want to convert it to gui, i know its possible.
I just know it,
so can u give me a starter? a stud would be like.. 2 pixels mabe? but how to work out position? |
|
|
| Report Abuse |
|
|
Veltamax
|
  |
| Joined: 06 May 2012 |
| Total Posts: 368 |
|
|
| 04 Jul 2015 08:45 PM |
| If you have a starting position, you could base it off that position. |
|
|
| Report Abuse |
|
|
Veltamax
|
  |
| Joined: 06 May 2012 |
| Total Posts: 368 |
|
|
| 04 Jul 2015 08:46 PM |
I've made a model in the past that is very similar to this. It is a little bit complicated and takes a little bit to figure out, but if you really want to get your script working, this may help:
http://www.roblox.com/Radar-item?id=260245192 |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 04 Jul 2015 09:03 PM |
Could you fix my script I have right now?
MAP = game.Workspace.Part; Paths = MAP:GetChildren();
for i,v in pairs(Paths) do PosX = v.Position.X/MAP.Position.X; PosZ = v.Position.Z/MAP.Position.Z; SizeX = v.Size.X/MAP.Size.X; SizeZ = v.Size.Z/MAP.Size.Z; local path = Instance.new("TextLabel", script.Parent.Map);--make the fake path, map is already pre-made, (THE GREEN STUFF) path.Text = ""; path.BackgroundColor = v.BrickColor; path.BorderColor = v.BrickColor;--color it the appropriate color. path.Size = UDim2.new(SizeX,0, SizeZ,0) path.Position = UDim2.new(PosX,0,PosZ,0) end
It goes off screen 3: |
|
|
| Report Abuse |
|
|
|
| 04 Jul 2015 09:06 PM |
| Im guessing you take a centerpoint, and use region3's to get the parts in a certain area. Then, you simply get their position and rotation in relation to the center parts position and rotation and place it on the screen. It will take a very small bit of geometry and im not sure how exactly to do it but ive seen a great one that uses this method. |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 04 Jul 2015 09:08 PM |
| well Im taking the grass area the paths are on and using tat as a center part, the rest is a fraction. |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
| |
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
| |
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
| |
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 05 Jul 2015 01:26 AM |
| could someone help with the math? |
|
|
| Report Abuse |
|
|