View Full Version : GUI @ player.xy
sssssssssss
02-01-2014, 04:50 AM
Is there a way to show a GUI image ctrl at the player.x and player.y? I've tried it on layer 1 and 0 and it didn't work. :/
cbk1994
02-01-2014, 05:52 AM
Is there a way to show a GUI image ctrl at the player.x and player.y? I've tried it on layer 1 and 0 and it didn't work. :/
You can't show GUIs at level coords. You can convert between level and screen coords if you want, though.
sssssssssss
02-01-2014, 05:53 AM
how would you do that? I tried localtoglobalcoords/globaltolocal, but i'm not really sure how to do it in this situation to be honest.
cbk1994
02-01-2014, 05:58 AM
I had the same question 7 years ago, and also tried using globaltolocalcoords without understanding what it does. Quoting:
If I understand, You want to change the level coordinates to screen coordinates. To do this:
screenx(x, y)
screeny(x, y)
They will return the screen position at (x, y).
sssssssssss
02-01-2014, 06:04 AM
You're my hero you know that?
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.