0 votes

I have a character animation which turns the character by 90 degrees. I would like to "scale" it to be able to apply it independently of the angle to turn. To turn by 180, I can apply the animation twice.

Is it possible to apply the animation a non-integer amount of times (ie. scale every movement according to a float number) to enable turning by, e.g 45 degrees?

in Engine by (75 points)

1 Answer

0 votes

If it's a smooth animation, you could play only half of it, but if it's a single frame as I expect, I don't think so. If you want to get a popping effect where it turns x degrees, the number of degrees would be set in stone at run time, unless maybe you programmatically changed the key. But if you were going to do that, you could just program in the rotation, so that's silly. Only thing I can think to do is lessen the degrees of the rotation and play it twice, but I imagine you already knew you could do that. I don't believe you can play like 50% of a keyframe though or anything like that.

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