Class TSpriteAnimation

Unit

Declaration

type TSpriteAnimation = class(TObject)

Description

Custom animation of a sprite. Used by TSprite.AddAnimation and TSprite.PlayAnimation. Animation is defined as an array of frames.

Hierarchy

  • TObject
  • TSpriteAnimation

Overview

Methods

Public constructor CreateConstantFps(const AFrames: array of Cardinal; const FramesPerSecond: Single);
Public constructor Create(const AFrames: array of TSpriteAnimationFrame);

Properties

Public property Duration: TFloatTime read FDuration;

Description

Methods

Public constructor CreateConstantFps(const AFrames: array of Cardinal; const FramesPerSecond: Single);
 
Public constructor Create(const AFrames: array of TSpriteAnimationFrame);
 

Properties

Public property Duration: TFloatTime read FDuration;

Duration, in seconds, of this animation.


Generated by PasDoc 0.16.0.