I have a simple animation made that I want to play when I press my table button. It doesn't work please help me out if possible!
I have a simple animation made that I want to play when I press my table button. It doesn't work please help me out if possible!
https://godotforums.org/uploads/editor/ky/y4yzw2w17pgn.jpg The problem is that buttons don't have a frame property, it's the sprite node that has one:
![]()
Your animation has to be a sprite sheet like this (you have to use frames of a same image with animation player):
Also i think that _on_button_pressed() it's just for mouse click (without taking into account that the character has to be close to be activated), so i'll see how to do it with keyboard if your game it's played with it.
Edit: I found this video:
thx bud