Hello this code executes an animation when it is detected that the player has touched a floor
if get_slide_count() != 0:
var body = get_slide_collision(get_slide_count()-1)
if body.normal == Vector2(0,-1) and body.collider.is_in_group("puas"):
The problem is that since the player is constantly touching the floor, the animation runs many times.
How would I make him