When reusing same tween, it's not starting from current value #635
-
I have a vector3() called focusPoint which needs to tween to the cursor objects's position on every click i create a tween
then on pointer events i use
this works for the first click then second click onwards it does not start from where it was before (jumps to end frame) anyway to overcome this ? |
Beta Was this translation helpful? Give feedback.
Answered by
trusktr
Apr 23, 2023
Replies: 1 comment
-
Hello! There is a new |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
trusktr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! There is a new
tween.startFromCurrentValues()
method, which is an alias fortween.start(undefined, true)
. This will start the tween again from the current values instead of from the beginning. Needs doc update.