How do I make 2D collisions? I need to be able to detect which direction a gui object is coming from. I already searched up previous posts and those didn’t help.
Im not sure I understand, what do you mean by decide direction? could you provide a image/video of what you mean?
If you are looking for general 2d collision there are already posts, here on the devfourum about that
Are you talking about Gui colliding with player?
Here’s a video from our great leader @EgoMoose
What I mean by direction is preventing the player from walking in a wall. So I need to get the direction to prevent moving.
You could script a gui position check where it checks that the first gui doesn’t get inside the second gui. This could be useful https://developer.roblox.com/en-us/api-reference/property/GuiObject/Position
All hail the G O D.
I don’t understand though…
Are you trying to only move a character left & right?