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

Animation_begin emitter not working as expected #39160

Open
lukostello opened this issue May 30, 2020 · 1 comment
Open

Animation_begin emitter not working as expected #39160

lukostello opened this issue May 30, 2020 · 1 comment

Comments

@lukostello
Copy link
Contributor

lukostello commented May 30, 2020

Godot version:

3.2.1 stable

OS/device including version:

Windows10

Issue description:

I am trying to use Animation player to go from 2 - 2.5 then -.5 to 0 using animation player and it keeps inserting a frame where it has a value of .5.

I could forgive the behavior of this if I was changing the value when the animation_finished signal emitted out of my "begin" animation (which I tried there is an alternate script you can attach to the tracker object using this method) but I am changing it at the beginning of the "end" animation. This behavior is not what I want and I don't know how to get my desired effect.

Steps to reproduce:
just hit play. You'll see it appear at .5 and you'll be able to read it on the print out as well.

Minimal reproduction project:

wrap problem.zip

@tom-jk
Copy link

tom-jk commented Jul 8, 2020

As a workaround try the animation player advance or seek methods:

func anim_begin(anim_name):
	if(anim_name == "end"):
		translation.x = 0
		anim_player.advance(0)
		# or: anim_player.seek(0, true)

this seems to force it to update immediately, which makes the box move straight to the intended position.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants