Description
Changelog
Reviews (0)

GodotSwfPlayer imports .swf files as SwfFilm resources. Add a SwfSprite2D to your scene to play the imported animation, including nested movie clips. The importer stores timelines in a Godot AnimationLibrary, and the sprite samples those tracks during playback.

Quick Start

  1. Copy addons/swf_player into your project's addons/ directory and enable swf_player under Project → Project Settings → Plugins.
  2. Add a SwfSprite2D node. Assign an imported SWF to its SWF Film property, or drag the SWF from the FileSystem dock onto the node in the Scene tree.
  3. Enable Playing in the Inspector to preview the animation. Enable Interpolate Frames for smoother transitions, or Play Once to stop at the last frame.

Playback API

Task API
Control playback play(), pause(), stop(), restart()
Seek to a time or frame seek(seconds) or current_frame (starts at 1)
Play an exported symbol set_symbol(symbol_name)
Inspect timelines and tracks get_animation_library(), get_track_depths(), get_track(depth)
Read a placed object's registration point get_track_object_position(depth, use_global_position)

A track is identified by its SWF display-list depth. Pass true for Godot global coordinates. If the current frame has no object at that depth, the position query returns null. For nested clips, pass their ancestor depths as the optional parent_depth_path argument. See SwfSprite2D.gd for the full API.

Format Support

  • Files and timelines — FWS, CWS and ZWS; nested movie clips and optional frame interpolation.
  • Graphics — Bitmaps, vector paths, Bézier curves, strokes, gradients, morph shapes, depth masks and static text with embedded glyphs.
  • Audio — PCM, ADPCM and MP3 for event sounds and streaming audio.
  • Blend modes — Normal, Layer, Multiply, Screen, Lighten, Darken, Difference, Add, Subtract, Invert, Alpha, Erase, Overlay and HardLight.
  • Filters — Drop Shadow, Blur, Glow, Bevel, Gradient Glow, Convolution, Color Matrix and Gradient Bevel.

License

GodotSwfPlayer is open-source software released under the MIT License. See the included LICENSE file for details.

Changelog for version v1.0.0

2026-12-02 19:30:50

No changelog provided for this version.

Reviews

GodotSwfPlayer has no reviews yet.

Login to write a review.

Consider supporting the creators!

If you enjoyed this asset consider supporting its creator. Follow the link below.