This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Hi, I'm new at Godot -and in programming in general- and I can't figure out how to do this, I already read the documentation and still can't get it.

This is all I have at te moment:

extends Area2D

onready var _player = $AnimatedSprite

func _ready():"Idle")

func onplayeranimationfinished():
if _player.frame == 299:"SitDown")

Godot version 3.5 Stable Custom Build
in Engine by (12 points)

1 Answer

0 votes
func on_animation_player_animation_finished(animation):"SitDown")

that is it.
If You want to check for specific animation You can also insert
if animation == "Stand"

You did connect AnimationPlayer signal correctly, didn't You ?

by (8,188 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.