HeldFrames.component
README.md
HeldFrames (component)
Draws the entity it is on (and the drawn meshes and skinned skeletons under it) on ones, twos, threes or any number of frames of a 24-a-second animation clock, while the entity's gameplay transform, colliders, physics body, scripts and camera keep running every frame. Put it on a character root, a player body, a prop or a projectile; it needs no sibling components. Its fields are synced, so every player sees the same drawings, and saved with the scene.
Fields: onFrames (frames per drawing, 0 = the scene default), baseRate (the animation clock, 24), fastOnFrames and fastSpeed (mixed timing: switch to another number of frames above a speed, e.g. ones for a dash), holdTransform, holdSkeleton, children. FrameTiming.set(entity, "twos") adds or updates it from code.