computor Posted December 16, 2014 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:
Swizzbeat Posted December 16, 2014 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
Joseph Posted December 16, 2014 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
computor Posted December 16, 2014 Author Posted December 16, 2014 I tried adding those into setLocationRelativeTo(getOwner()); But it didn't work.....what's the correct format?
Czar Posted December 16, 2014 Posted December 16, 2014 int x = 999; int y = 999; setLocation(x, y); Fill in the X and Y according to Swizzbeat's post