Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

playing and yielding to animations from animation player or animation tree? #60

Open
Shadowblitz16 opened this issue Jun 4, 2023 · 4 comments

Comments

@Shadowblitz16
Copy link

No description provided.

@Shadowblitz16 Shadowblitz16 changed the title playing animations from animation player or animation tree? playing and yielding to animations from animation player or animation tree? Jun 4, 2023
@imjp94
Copy link
Owner

imjp94 commented Jun 4, 2023

State machine is simply for state management, it doesn't handle animation.

Anyway, I don't think you can yield for animation tree, so I would say animation player

@Shadowblitz16
Copy link
Author

Shadowblitz16 commented Jun 4, 2023

animation is tied to state though.
it makes it so we don't have to attach scripts and switch through all the states just to manage animations.

I was thinking something like a animation node in the chart editor where we could set a animation player and a animation to play or something when a state is active

let me do a moch up real quick

@Shadowblitz16
Copy link
Author

Shadowblitz16 commented Jun 4, 2023

image
image

I don't know what font the editor uses but the basic idea is that you could assign a animation player to the state machine and have animation finished conditions and animation nodes

EDIT: in fact assigning the animation player through the node would be better that way we can have multiple animation players per state machine
image

this would be really good for controlling menus

I could do fine without animation tree but I really need animation player because I am using it for menus

@Shadowblitz16
Copy link
Author

@imjp94 you there?
I have been trying to use godot's animation tree to do state machines but it's completely broken.
It won't update states properly and I am really hoping this could be a alternative

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants