b2dMeshClipFrames

Number of morph frames in an animation clip.

2D Overlay

Parameters & Returns

Parameters

handle Int
clip Int

Returns

Int

Quick Summary

Number of morph frames in an animation clip.

Technical Exegesis...

Returns the frame count of clip (0..b2dMeshClipCount-1). Use it to loop the clip: the current frame within the clip is (elapsedFrames Mod thisValue), and the next frame wraps with ((fi + 1) Mod thisValue).

Example

Example.bam
Local frames:Int = b2dMeshClipFrames(mesh, clip)