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: Displaying a Part on a 2D Frame by offsetting from Character

Previous Thread :: Next Thread 
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
15 Jan 2015 03:29 PM
am confused, one of the things I tried (out of confusion) is
local Pos3D = torso.Position - workspace.Part.Position
but it displays the Part like a Distance of 150 Approx. from the Torso :/ but in the Correct direction though
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
15 Jan 2015 03:35 PM
http : // img ur . com /Zh8AUDh
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
15 Jan 2015 04:03 PM
I also tried toWorldSpace()
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
15 Jan 2015 04:37 PM
I would use
map.Part.Position = UDim2.new(.5, Pos.X, .5, Pos.Y)
but I'm already more than half way to making a proper FPS Radar (u know the one were ur always in the middle)
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
15 Jan 2015 04:40 PM
1.) UDim2 won't work in 3D space. That's for GUI.

2.) Use magnitude to find the distance using Pythagorean's theorem.

local pos1 = Vector3.new(20,5,2)
local pos2 = Vector3.new(11,17,1)
local mag = (pos1 - pos2).magnitude
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
15 Jan 2015 04:42 PM
1. I know that, u must have misread my Posts :/

2. I was thinkin about it :/ just confused a lil cos didnt sleep much last night, and now it's like 22:43 so my Brains aren't at full work mode :/
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
15 Jan 2015 04:45 PM
"Programmers are machines that turn Caffeine into code." - cody123454321
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
15 Jan 2015 04:48 PM
lol... I drank some Coffee about an Hour ago I think (or less) but Coffee doesn't help me that much (but it does make me feel awake like hell if I wanna sleep really bad)

so could u plz explain before I go to sleep?
cos I cant use
thing.Position = UDim2.new(0, mag, 0, mag) cos then even if a part was more on the side away from the Player then from back and forward the label will be done in Rectangle Mode :/
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
15 Jan 2015 04:51 PM
I do not understand your goal because the lack of explanation and grammar.
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
15 Jan 2015 04:59 PM
I want, the Label representing the Part in workspace, to be shown accurately on the Radar...
the Player is always in the Middle of the Radar (like in FPS Games), so I didn't make the Frame the same size as the Baseplate, so I cant do UDim2.new(0, part.Position.X, 0, part.Position.Y)...
so I need to make sure it's kind of the same distance as if the Frame was the same Size as the Baseplate...
ya know? as I showed in the Picture (if u didn't see it) the Part is right beside me but it's in the Corner of the Radar :/ but it's in the right direction from the Player on the Radar
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
15 Jan 2015 05:18 PM
I think I got it now :D Finally! :D
Report Abuse
Kapitanovas is not online. Kapitanovas
Joined: 09 Sep 2012
Total Posts: 4216
15 Jan 2015 05:35 PM
except that my Radar isn't rotating properly :/
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