Libraries

s&box libraries list

SbTween

resync.sbtween

SbTween is plug and play tween library for S&box Editor.

About

SbTween is plug and play tween library for S&box Editor.

This library adds tween feature to already existing components. (Transforms, Color, float, Screen Panel)

Inspirated by DoTween & GDTween

[Features]

Auto "Inject" - u don't need to add TweenManager to every level. system will add it by itself.

Tweening Component - SbTweenPlayer

[Supported]
ActionGraph
Doo

Tweens:

Local, World Position

Local, World Rotation

Local, World Scale

Color Tween

Position, Rotation, Scale Shake

Screen Panel Opacity

Float tweener
Spiral, In Circle
Camera Tweens
Light Tweens
Post Processing Tweens
Text Renderer Tweens
Vector2 Tweens
Decal Tweens
Fog Tweens

Easings, Looping

Callouts onComplete, onStart, onUpdate.

Easy system for adding custom tween extensions.

Sequences (inspirated by DoTween)

Example Level.

> where is showcased every tween.

How to use it?
Example of basic cube movement.

this.TweenMove( new Vector3(25,25,25), 3 ).SetEase( EaseType.Linear ).SetLoops(-1,LoopType.Restart).Play();

Shoutouts:

Braxen (TweenManager) for inspiration.

DoTween, GDTween for inspiration.

Robert Penner for easing equations.
Enzo for helping.

Future

Tweening Component (instead of writing code, you can play or setup tweens in inspector)

Improve quality

Simplify script

I wanna look into razer, scss.

Better network support.

If you need help with something or if you wanna report a bug.
Contact me on discord: DeadFinally
Or you can visit SbTween channel on S&box server.


Source Code:



More by resync

01
Snap to vertex thumbnail
Snap to vertex resync.snaptovertex

Snap your selected object to vertex!

+0 24h
2favorites
2upvotes
43%Terry score