0 votes

i'm making a 2D Platformer and attempting to make fluent physics for it, and I would like to know how to stop gaining velocity while walking against walls.

at some point, i tried making code to fix this issue, but it was flawed

if isonwall() && touched.normal.x < 1.0 && move.y != 0.0:

move.x = touched.normal.x

trying to jump up and move towards one-way/semi-solid tiles stops the x velocity, and thought the solution to this would be making one-way tiles passable through the sides aswell, what do i exactly do?

Godot version v3.3.3
in Engine by (12 points)

Is the code setting the speed for the player while the player is on the wall? If so, that can be limited by the clamp() function.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.