Options
All
  • Public
  • Public/Protected
  • All
Menu

A frame used by a SpriteAnimation in a gdjs.SpriteRuntimeObject.

It contains the texture displayed as well as information like the points position or the collision mask.

Type parameters

  • T

Hierarchy

  • SpriteAnimationFrame

Index

Properties

center: SpritePoint = ...
customHitBoxes: Polygon[] = []
hasCustomHitBoxes: boolean = false
image: string
origin: SpritePoint = ...
points: Hashtable<SpritePoint>
texture: T

Constructors

Methods

  • Get a point of the frame.
    If the point does not exist, the origin is returned.

    Parameters

    • name: string

      The point's name

    Returns SpritePoint

    The requested point. If it doesn't exists returns the origin point.

Generated using TypeDoc