parts of the grey frame is not in the black frame. You get it? can you help me in this? thanks.
function IsInBound(Frame1, Frame2)
if Frame2.AbsolutePosition.X < Frame1.AbsolutePosition.X or Frame2.AbsolutePosition.Y < Frame1.AbsolutePosition.Y then
return false
end
if Frame2.AbsolutePosition.X+Frame2.AbsoluteSize.X > Frame1.AbsolutePosition.X+Frame1.AbsoluteSize.X then
return false
end
if Frame2.AbsolutePosition.Y+Frame2.AbsoluteSize.Y > Frame1.AbsolutePosition.Y+Frame1.AbsoluteSize.Y then
return false
end
return true
end
Frame2 is the outside one (grey) and Frame1 is the inside one (Black)
If Frame2 is inside Frame1 it will return true
else if its outside it will return false
no no thats not what I want. I want it to like see if the entire frame 1 in in frame 2 like if it fits inside frame 2 comfortably. Its more tricky than that.
as you can see
Part of frame number 2 is outside the bounds of the black frame. I want it to know that its out.
also basically I am making a custom text engine and I want it to advance to next line.
what?
I dont quite understand what you mean
Part of frame number 2 is outside the bounds of the black frame. I want it to know that its out.
Ye, my function should work even if its a text label
Oh ok thank you i will check it after a while.
YOOOOOOOO THANK YOU SO MUCH! IT WORKS! tysm