I'm making a mini game, and the code I made isn't working, any tips?

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

the code is

func _on_Button_pressed(): play(anim: str = "runnin", backwards, bool: false); #it shows an error pass

:bust_in_silhouette: Reply From: Gluon

It would be useful to know what error you get when you put this code in but I notice immediately that it states str = “runnin” and I would hazard a guess it should be str = “running”.

no, I named it that on purpose and the error is error(20,11): expected ‘,’ or ‘)’

Prim | 2022-01-24 01:07