Hi, I'm new to game development and programming in general.
Right now, I'm working on a 2D platformer movement script. The last change I made was adding acceleration and deceleration to the player's horizontal (X-axis) movement.
After this change, a new problem appeared:
- The wall jump power on the X-axis got significantly weaker,
- And no matter how high I set the X force, the result is always the same.
For example, whether I set the X wall jump force to 1 or 100, the actual horizontal force during the wall jump feels exactly the same.
I can't tell exactly where the issue is, maybe the added acceleration logic is interfering?
Can anyone help me find where the problem might be?
Here's the full script:
https://pastebin.com/1cvsbWJ2
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.