2.1.0 • Published 2 years ago
@rbxts/animation v2.1.0
@rbxts/animation
Animation Generation and Utility for TS
@rbxts/animation
is inspired by Flameworks networking package and streamlines the process of creating, and loading
Features:
- Generating Animations in a single, or multiple file if so wished.
- Preloading animations using ContentProvider:PreloadAsync
- Utility for calling Animator:LoadAnimation() on every animation.
Example:
import { Animation } from "@rbxts/animation";
const Bundle = Animation.createAnimations({
idle: 1234,
walk: "rbxassetid://1234",
others: {
idle: 1234,
walk: "rbxassetid://1234",
},
sliceExample: Animation.createSlice("rbxassetid://1234"),
});
Animation.preload().then(() => {
print("Preload complete");
});
Animation.loadAnimator(undefined! as Animator, Bundle).idle.Play();