Relative Content

Tag Archive for game-developmentgodotgdscriptgodot4

Basic player plateformer code but cant use directional based animations in godot

So basically I was trying to use the default script for 2d player controller and now I’m struggling to make a different animation based on the direction variable in the script and my error code says that I need two parameters for input.get_axis() in my if statement where only
put one so that when I go left the sprite faces left but its not working.