0 votes

Hey !

I'm trying to do a "dodge" move like that:
https://drive.google.com/open?id=1GI-0jlBJsxRXxWRe0L3xAgXZ3EzIB8Ea

I tried with a keyframe animation but I want the movement to be relative to the player position so it was not the right way.

Later I tried with a tween but I can't do a "circular" movement as on my diagram with it.

I think that I should use a curve2D but I don't know how to use the same curve2D for the left and the right movement (1 curve that facing player's input direction).

Having two curves each side of the player will be another solution but I don't know if it's well optimized for a 2D fighting game...

Maybe you guys will have some other ideas !

in Engine by (30 points)

1 Answer

+1 vote
Best answer
by (19,705 points)
selected by

Thanks a lot ! I searched on the net but didn't use "parable" as a keyword ! Thanks again ! ;)

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 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 webmaster@godotengine.org with your username.