#Problem with wallJumpPower

1 messages · Page 1 of 1 (latest)

old cloud
#

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,
  • 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

steep fjord
#

other than that it looks fine

old cloud
steep fjord
#

hm

#

the acceleration logic seems ine to me

#

so it's the same even if you set it to a ridiciolusly large number (like 1000 even)?

old cloud
#

yes, it's the same - I have separate methods for normal jumping and for wall jumping - maybe there's problem in those methods?

steep fjord
#

the wall jumping part also seems fine

#

try checking how the velocity changes when you wall jum