I’m making a 2D plat former style game and there’s one big issue I found.
It’s hard to word this out so I’ll try my best.
It happens when you’re holding down either A or D depending on direction your going. If there’s a wall you can hold down these buttons and jump. This begins to move the player in the directions that would normally either be W or S. What ends up happening is you fall of the map and die.
The only solutions I found are invisible walls which do keep you alive but is still buggy. I also thought of making a script which would reset the player’s x axis to only be at 0. The problem the x axis script is I wouldn’t know how to go about doing that.
Here’s how it would be normally:
Here’s how it is when you’re in the back:
Here’s how it is when you’re in front:
Here’s a video. I use various mechanics I made to perform the glitch. You can also see some custom animations. They aren’t the root of the problem though. When I used Roblox’s default R6 animations they still resulted in the same way.
Video:
robloxapp-20200622-1537425.wmv (1.3 MB)