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
The RepeatCount property of TweenInfo.new() does not fully mirror the Roblox behaviour because in-order to fully tween an instance the RepeatCount property needs to be set to 1 or above.
This is likely due to the Tween duration being calculated as:
tweenDuration*=self._tweenInfo.RepeatCount
This however was fixed in the repository by adding 1 to the repeat count:
tweenDuration*=self._tweenInfo.RepeatCount+1
As a result of this fix however, when the RepeatCount is set to -1 the Tween will not play at all because -1 + 1 = 0 and when multiplied with the time duration for the tween it will be 0. This differs from Roblox behaviour as having a RepeatCount of -1 should lead to an infinitely looping tween as suggested by the documentation
The text was updated successfully, but these errors were encountered:
Hey @Elttob, this fix seems to be missing from 0.2 and seems to not be present in the latest version of main either. It is present in the Fusion 0.2 docs that a repeat count of -1 should repeat infinitely, which suggests that it is intended for this to be in still. Was it reverted? I can't actually seem to find it in the commit history either, so I am very confused, since it appears to have been merged. Did an evil rebase eat it?
The
RepeatCount
property ofTweenInfo.new()
does not fully mirror the Roblox behaviour because in-order to fully tween an instance theRepeatCount
property needs to be set to 1 or above.This is likely due to the Tween duration being calculated as:
This however was fixed in the repository by adding 1 to the repeat count:
As a result of this fix however, when the RepeatCount is set to -1 the Tween will not play at all because
-1 + 1 = 0
and when multiplied with the time duration for the tween it will be 0. This differs from Roblox behaviour as having a RepeatCount of -1 should lead to an infinitely looping tween as suggested by the documentationThe text was updated successfully, but these errors were encountered: