Phaser API Documentation

  Version: 
Filter
Namespace: Sprite
Phaser.Types.GameObjects.Sprite

Type Definitions

SpriteConfig
Focus
Focus
Properties:
name type arguments description
key string | Phaser.Textures.Texture <optional>

The key, or instance of the Texture this Game Object will use to render with, as stored in the Texture Manager.

frame string | number <optional>

An optional frame from the Texture this Game Object is rendering with.

anims string | Phaser.Animations.Animation | Phaser.Types.Animations.PlayAnimationConfig <optional>

The string-based key of the animation to play, or an Animation instance, or a PlayAnimationConfig object.

useSpriteSheet boolean <optional>

This property is used exclusively by Tilemap.createFromTiles. Set to true if this Sprite is being created by a Tilemap and is part of a spritesheet.

Type:
object
Focus
Focus