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.
2 Likes
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
1 Like
Are you talking about Gui colliding with player?
1 Like
What I mean by direction is preventing the player from walking in a wall. So I need to get the direction to prevent moving.
1 Like
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 GuiObject | Documentation - Roblox Creator Hub
1 Like
All hail the G O D.
I don’t understand though…
Are you trying to only move a character left & right?
1 Like