(Problem) Character only moves right and backwards!

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By RevampedSpider

Hello Godot community,

I’ve just started using Godot, as I’ve heard plenty of good things about the engine. Looking at the 2018 game showcase made me want to learn it.

I decided to make a simple 3D platformer in Godot, so I watched a tutorial by Jayanam. After I was done with it, I tested the project and as able to move my character, but only right and backwards.

Does anyone know why this happened and how I can fix it?

Hello, buddy. Welcome to the community.

If you want us to help you, you should provide more info about the problem. As a good start point, you can paste here the script you are using for the movement, so we can see if there’s any problem on it.

Mateus Felipe C. C. | 2018-10-28 01:26

Sorry for the late response, but I found it out after comparing the code. I’ll put the solution here for anyone else having the same problem:

When you insert the input events, you have to put a - before the second and fourth direction events.

Hope this helps anyone having trouble. Godot is great.

RevampedSpider | 2018-10-29 03:56