Lerp Service | v1.0.3 | A TweenService like service

GitHub | Documentation
Example Video

What is Lerp Service?

Lerp Service is a (strict typed) library (service) kinda like how TweenService works, it makes Lerping more customizable and easy to change his properties during runtime.

How to use it.

First of all require LerpService!
ezgif-6c24c3c7ba033d02

Then create a Lerp Info and provide the paramters
LerpServiceInfo
Lastly, construct your lerp!
ezgif-266495029bc8dc90

All Lerp properties can be modified, (2 recommended to be read-only).

Lerp haves some methods and signals such as: Play() Stop() and Delete(), and some signals like Completed Stopped and Deleted

And a lot of properties, these can be found on the Documentation on GitHub, check out the Documentation to find all the properties, methods and signals this services haves.

Why not TweenService?

A Tween cannot be modified while playing, but a Lerp from LerpService can be modified in runtime.
LerpService supports EasingStyles and EasingDirections just like TweenService does.

Additionally in LerpService 1.0.3 you can now create AlphaPoints, which allow you to know when a certain point of the alpha is reached, similar to Markers on animations.

Thanks for reading!

10 Likes

uhhh the ‘File’ button sent me to about:blank#blocked.

1 Like

Thank you, didnt notice, ill remove that option tho, its the same thing to get it from github

Muy enserio te tomaste lo que dijo Cadles KSJKSLJDK

1 Like

Update

LerpService 1.0.3

Added new AlphaPoints which allow you to place marks in the alpha, when the Lerp is playing and reaches a certain alpha, it will fire a signal called PointReached, that signal will contain the AlphaPoint that has been reached and you can simply verify the AlphaPoint with an If statement.

Added 3 new methods to lerps:

CreateAlphaPoint
DeleteAlphaPoint
ClearAlphaPoints

Added a new signal:
PointReached

For more information you can checkout the update log and API in the GitHub.