CLASS v1.8.0

SheetStrip

pykraken.SheetStrip

A descriptor for one horizontal strip (row) in a sprite sheet.

More about SheetStrip

Defines a single animation within a sprite sheet by specifying the animation name, the number of frames to extract from the strip, and the playback speed in frames per second (FPS).

Reference

PYTHON API
SheetStrip(name: str, frame_count: int, fps: float)

Create a sprite sheet strip definition.

Args

  • name (str) — Unique identifier for this animation.
  • frame_count (int) — Number of frames to extract from this strip/row.
  • fps (float) — Frames per second for playback timing.

fps

property
fps: float

The playback speed in frames per second.

Determines how fast the animation plays. Higher values result in faster playback.

Type: float: The frames per second for this animation.

frame_count

property
frame_count: int

The number of frames in this animation strip.

Specifies how many frames to extract from the horizontal strip in the sprite sheet, reading from left to right.

Type: int: The number of frames (must be positive).

name

property
name: str

The unique name identifier for this animation strip.

Type: str: The animation name used to reference this strip.

Find your next step

Start typing to search the manual.