Movement weird behaviour

gdt_s04_the_player_character

#1

Greetings.

I noticed a weird behaviour while doing this chapter. I have no clue why but my motion (Vector2) x and y properties doesn’t go lower than -99.99 so my movement is faster down and right. I am using Godot 3.0.6 on Linux…

Any idea what could be causing this behaviour?


#2

The behaviour corrected himself as soon as I switch from if to elif for each axis, the problem was due the else to kick in the friction that was being applied constantly slowing down the motion


#3

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.