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´ve successfully implemented functional doublejumping in my 2D platformer. However now i want to spice it up a bit and rotate the player during the second jump either 360 degrees or by using an animation player.
I have already tried both of these and they work BUT i only want the character to rotate when he is actually jumping in upwards direction (so basically velocity.y < 0).
And this is also easy to add with just another check, HOWEVER: Another problem arises. I want this animation / rotation to be completely done when the player is moving down (velocity.y >= 0) again.

How do i pull this off?

My Doublejump code:
(the comment there is what i want)
enter image description here

My character during the second jump when he should rotate:
enter image description here

Godot version 3.2.3
in Engine by (78 points)

1 Answer

+1 vote

Well... In general, the entire jump only raises the character, and everything that happens during the jump is animated, the animation editor is available inside the engine as a Node that you can apply. There you can set up a 360-degree flip, disappear, and so on... Simply put, call the configured Animation Node during the second jump and you will be happy)

by (142 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.