Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | 9BitStrider | |
Old Version | Published before Godot 3 was released. |
func _on_MegaMan_finished():
if anim == "lilstep" and direction <> 0:
anim = "run"
player.play(anim)
The above code gives me the following error:
error(71,38): Error parsing expression, misplaced: '>'
I’m not too familiar with the inner workings with GDscript or Python yet. Is there another expression to tell if my direction value is different from 0?