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

keeping track of the frames #29

Open
AlexNight1986 opened this issue May 12, 2019 · 2 comments
Open

keeping track of the frames #29

AlexNight1986 opened this issue May 12, 2019 · 2 comments

Comments

@AlexNight1986
Copy link

is there a way to combine the Dragonbones animations with the Animation Player?
For example, i want to make an attack animation using a hitbox, and make it appear in a specific frame...
how do i keep track of the frames on the node?

@definite-d
Copy link

Hello, @AlexNight1986 !

I asked a similar question on this same repository, and @Ranoller suggested that one way to do such would be to set the DragonBones node to play an animation, and then animate the hitboxes in Godot itself. When that AnimationPlayer animation is played, the DB node plays its own animation, and the collision boxes are animated simultaneously. As for enabling a collision poly, you can keyframe its function to be enabled at a point in the animation. Think of it as using Godot as a "bigger" DragonBones, if that will help.

@AlexNight1986
Copy link
Author

Thanks for the answer! i will try it!

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