#Tween from function only plays once

4 messages · Page 1 of 1 (latest)

royal cargo
#

Not sure if I am looking at it correctly, but it seems like you can't play the ground pound animation twice because:

Your tween is continued until kill.

Your tween plays once because it is new and never has been called before. After you ground pound twice, the tween still exists and possibly tweening to -360 is faster by not rotating at all, even if rotation_degrees.z = 0. You can use kill() as a way to reset your tween. Consider placing it after your animation is finished.

See if that solves the problem.

royal cargo
#

Like mario?

lucid wraith
#

You're tweening the model's rotation_degrees->z property. However, you seem to be resetting the caller's in this line, instead.

...
# Line 13 #
rotation_degrees.z = 0
...

So maybe:

$Model.rotation_degrees.z = 0
royal cargo