computor Posted December 16, 2014 Share Posted December 16, 2014 Is there a way to start a script, and have GUIs position themselves relative to each other? For example, the bot starts off like this: But I want the bot to start off with its GUIs next to each other, like this: Link to comment Share on other sites More sharing options...
Swizzbeat Posted December 16, 2014 Share Posted December 16, 2014 Set the starting location: x = first gui x + first gui width + distance between the two y = same as first gui 1 Link to comment Share on other sites More sharing options...
Joseph Posted December 16, 2014 Share Posted December 16, 2014 Set the starting location: x = first gui x + first gui width + distance between the two y = same as first gui That's a lot of math for me to handle 1 Link to comment Share on other sites More sharing options...
computor Posted December 16, 2014 Author Share Posted December 16, 2014 I tried adding those into setLocationRelativeTo(getOwner()); But it didn't work.....what's the correct format? Link to comment Share on other sites More sharing options...
Czar Posted December 16, 2014 Share Posted December 16, 2014 int x = 999; int y = 999; setLocation(x, y); Fill in the X and Y according to Swizzbeat's post Link to comment Share on other sites More sharing options...