Skip to main content

Pixi Sprite

This node displays an image texture in the Pixi scene. It supports various transforms and effects.

The Pixi Sprite is used to display images and textures in your Pixi scene.

The Pixi Sprite node creates a PIXI.Sprite that displays an image texture. It's one of the most commonly used nodes for displaying graphics, characters, UI elements, and any visual content in your Pixi scene.

Inputs​

Position​

DataDescription
XHorizontal position
YVertical position

Transform​

DataDescription
RotationRotation in radians
Scale XHorizontal scale
Scale YVertical scale
Anchor XHorizontal anchor point (0-1)
Anchor YVertical anchor point (0-1)
Pivot XHorizontal pivot
Pivot YVertical pivot

Appearance​

DataDescription
AlphaTransparency (0-1)
TintColor tint
VisibleVisibility control
Blend ModeRendering blend mode

Dimensions​

DataDescription
WidthSprite width (optional)
HeightSprite height (optional)

Sprite​

DataDescription
Image URLSource image path or URL

Filters​

DataDescription
Enable BlurBlur filter toggle
Blur AmountBlur intensity
Enable Color MatrixColor matrix filter
Enable DisplacementDisplacement filter
Enable Drop ShadowDrop shadow effect

Animation​

DataDescription
Ticker EnabledAnimation ticker
Ticker SpeedAnimation speed
Animation TypeAnimation type
Custom Animation CodeCustom animation code

Outputs​

DataDescription
Texture LoadedBoolean indicating texture load status
Texture LoadingBoolean indicating loading state
Natural WidthOriginal texture width
Natural HeightOriginal texture height
Node ReferenceNode reference
SignalDescription
Pointer DownTriggered when pointer is pressed down
Pointer UpTriggered when pointer is released
Pointer TapTriggered when pointer taps the sprite
Pointer EnterTriggered when pointer enters the sprite
Pointer LeaveTriggered when pointer leaves the sprite
Pointer MoveTriggered when pointer moves over the sprite

Usage​

Pixi Sprite nodes are the primary way to display images in your Pixi scene. They support:

  • Image textures from URLs or local assets
  • Transform operations (position, rotation, scale)
  • Visual effects and filters
  • Interactive events
  • Animation capabilities

Supported Image Formats​

  • PNG (recommended for transparency)
  • JPG/JPEG
  • WebP
  • SVG (with limitations)
  • GIF (static frames only)

Performance Tips​

  • Use appropriately sized images for your display needs
  • Consider using texture atlases for multiple sprites
  • Enable Texture Loading monitoring for better user experience
  • Use Anchor points for proper positioning and rotation
  • Optimize images before loading to reduce memory usage

Example Use Cases​

  1. Game Characters: Display player and enemy sprites
  2. UI Elements: Icons, buttons, and interface graphics
  3. Background Images: Scene backgrounds and decorative elements
  4. Animated Sprites: Character animations and visual effects