0 votes

Hello,

i imported an animation from Blender (gear down, gear up), copied it and deleted either the up- and down part to have two separate animations. In one of them the first half (10 seconds) is now relatively boring. How can i set the new starting time ?

Thanx for any help !

in Engine by (134 points)

2 Answers

0 votes

To start an animation ("my_anim") from predefined time time I use:

get_node("path_to_anim").play("my_anim")
get_node("path_to_anim").seek(time, true)
by (675 points)
edited by

Sorry, had a problem with my mousepointer. Didn't meant to downvote on your post. If a mod reads this, would he/she correct it ? I meant to vote up ...

You can cancel your unwanted downvote by reclicking the button ;).

0 votes

Thanx.

It's probably not possible to change the starting time of the animation in the editor, only the length.

In GDscript your solution is a possibility, another one in my case was to simply play the noitamina backwards ...

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