Hi there,
I recently started messing around with Godot and decided to learn it in order to make a simple 2D plateformer.
In short, I'm very nooby at it at the moment so don't bite me!
I have a very simple signal setup where a static body move upward a bit when the player enters an Area2D collision. (Thanks to an AnimationPlayer node attached to the static object).
It works well but everytime the player enters the Area2D, it repeats the animation.
Is there a way to disable the signal once triggered?
I guess there's a better way to achieve this than using the AnimationPlayer node?
My noobish code is as follow:
extends AnimationPlayer
func _on_Area2D_body_entered(body):
play("Lift")
Regards :)