Hello !
I am trying to add gravity to a frame but, i don’t know how to make that.
So i am just trying to do something like this but with frame (gui):
So i want to know if it’s possible to add gravity to a frame or make a frame that go down but then the frame stop falling when it touch another frame
I don’t found any good script to make what i want to do then uhh… this is why i ask help.
I found something like that but this is not what i want because there is no gravity/falling effect:
function collidesWith(gui1, gui2)
local gui1_topLeft = gui1.AbsolutePosition
local gui1_bottomRight = gui1_topLeft + gui1.AbsoluteSize
local gui2_topLeft = gui2.AbsolutePosition
local gui2_bottomRight = gui2_topLeft + gui2.AbsoluteSize
return ((gui1_topLeft.x < gui2_bottomRight.x and gui1_bottomRight.x > gui2_topLeft.x) and (gui1_topLeft.y < gui2_bottomRight.y and gui1_bottomRight.y > gui2_topLeft.y))
end
I hope it’s possible to add gravity or make a falling effect with collisions
Have a good day !