0 votes

I'm making a platformer game and I'm using the KinematicBody2D demo with some changes. For the rolling I'm applying some force using velocity.x = ROLL_FORCE but when the player tries to roll into a slope the player jumps instead of just moving foward (like the image below).
I'm getting an B instead of an A
How can I solve this?

in Engine by (22 points)

When an objects says "I have to go now, my planet needs me” is because something is wrong on your logic.

If you can show the movement logic there will be more chances to get an answer.

Check if the y axis value of the velocity is negative :)

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.