Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

oh also encountered a small cute bug where the sprite continues playing the walk animation even when you don’t move :))

yess the bane of my existence I spend like 2 hrs yesterday trying to figure it out but gave up :(

(+1)

I’m also godot dev u can send me the code for the lil guy and I can try to have a look ?? :))

Sure ! I used a player controller by someone else but tweaked it with my spaghetti code ^^ 

I can share the git repo ? Idk how to do this lol

(1 edit) (+1)

Oh yeah itch doesnt have messaging thats uncool :O
Here’s my discord : fifigrade_ send me a text there !!

Personnaly I go simple with the code for the animation for platformer characters:

func _process() –> void:
––if is_on_ground():
––––if Input.is_action(“left”):
————sprite.play(“walk”)
————sprite.flip_h = true
––––elif Input.is_action(“right”):
————sprite.play(“walk”)
————sprite.flip_h = false
––––else:
————sprite.play(“idle”)
––else:
––––sprite.play(“falling”)

This code can be optimized but its not THAT BAD :D