Pls help 🥺Hi my code is wrong and i have no idea why

Godot Version

` 4.3

Question

` i give all scripts



Btw sorry for light :sweat_smile:
Can you help me ? (Ist’s my first make game and i don’t understand why is wrong)

Based on the error message i’d say there’s a problem on line 25. Maybe you didn’t tab it over, so it looks like:

func something():
    stuff
if is_on_floor()

which would be wrong because if is no longer in a method.

1 Like

yea this guy is right it should be
func xxx():
"tab"if is_on_floor():
“tab”"tab"sprite.play(“xx”)

also dont know if they are interchangeable but sometime you have " " and other times you use ’ ’ . i always use " " idk if i t matter so i thought i would mention it just in case if those parts work fine then ignore this last part.

Thank you so much. My game is ready to Play :smiley:

Thank you so much. My game is ready to Play :D.

1 Like