You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to update a value on repeat but .to(value), my ball destination, don't change.
my var "ball_position_target_x" is corretly updated inside .repeat() but not on .to()
Hello. You have to tell the tween the new value. Try this (untested):
.onRepeat(()=>{ball_position_target_x=50*(0.5-Math.random());ball_tween_1.to({x: ball_position_target_x},2000)// <-------- HERE, use the new value.console.log("ball_position_target_x",ball_position_target_x)})
Hello
I try to update a value on repeat but .to(value), my ball destination, don't change.
my var "ball_position_target_x" is corretly updated inside .repeat() but not on .to()
Thanks
The text was updated successfully, but these errors were encountered: