digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 20 Feb 2013 10:10 AM |
| I'm making a game using Guis, and I want to know how you can check if a Gui is touching another Gui, based upon it's BorderColor3. If possible, how would you check it? Would I need a script calculating what Guis are taking the same region of the screen and then do somthing with that? |
|
|
| Report Abuse |
|
|
cart6157
|
  |
| Joined: 28 Feb 2009 |
| Total Posts: 2194 |
|
|
| 20 Feb 2013 10:19 AM |
Um, check all pairs of guis if they're touching. Check the size of the two guis, then if gui1.Position.Offset.y(or something else idk the gui positions) - gui2.Position.Offset.y == gui1.size then
Just an idea :/ but I know you can make something out of it. |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 20 Feb 2013 10:20 AM |
It's a pitty ROBLOX doesn't have any methods for Gui objects.. like:
gui:Touching(gui2)
That would be so helpful.. |
|
|
| Report Abuse |
|
|
cart6157
|
  |
| Joined: 28 Feb 2009 |
| Total Posts: 2194 |
|
|
| 20 Feb 2013 10:22 AM |
| Try to make your own function :P and when you're done pm it to me, because it would be very useful XD |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 20 Feb 2013 10:36 AM |
I didn't even need to. I could just steal from the wiki; http://wiki.roblox.com/index.php/GUI_Collision_Tutorial
But I didn't, because I'm awesome like that. But you can copy it :P |
|
|
| Report Abuse |
|
|
moryo7
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 5028 |
|
|
| 20 Feb 2013 10:49 AM |
Roblox's support for GUIs is terrabad.
Needs some updating. |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 20 Feb 2013 10:50 AM |
I know. Well, atleast you can still make some novelty things with them..
Or you could just draw swear-words on the screen with them.
[SUCH A GMod QUOTE. LOLO.] |
|
|
| Report Abuse |
|
|