[Ignore] TweenService "Speed" Feature

Read below

Old

As a Roblox developer, it is currently hard to have a tween that moves at a set speed, such that no matter the distance from the end point it moves at a constant speed.

For example, if for example I make a crouch animation via welds ( Default animations aren’t great :frowning: ) and I want it so that if it’s pressed while it’s already playing, it would play from where it is back to where it should be. Currently using a tween that has a set time, this will end up with the second tween being slower as it started closer to the target. Using a “Speed” feature, no matter where in the cycle the leg is it will move at the same speed towards the end goal.

This “Speed” would be as an alternative to the current “Time” argument in the TweenInfo.new( ) and would differentiate between the two via either a new argument on the end “asSpeed” or a new argument on the end “Speed” which would be used if “Time” is nil.

6 Likes

Time = Distance / Speed

So all you need to do is just find distance.

1 Like

I did think of that but I was like

“What if we don’t know the end point!!!”…

I just realised you pass the end point to the tween so you have to know it.

I may be an idiot.

1 Like

What’s your looking for a tween.StartTime input. Something where you can go “Run this animation but act like it started 0.2 seconds ago”

For that I’d need to know when it started, with my idea it would have just been a constant speed value.

Either way, as Osyris said, I can work out the Time.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.