Scenes and Game Objects · Version 0.5

Render Sorting and Y-Sorting

Control which objects and tiles appear in front using Sorting Layer, Order in Layer, and world-Y depth.

Filmstrip uses shared sorting terms for Game Objects and tile layers:

  • Sorting Layer places content into a broad numeric depth group.
  • Order in Layer applies a smaller bias inside that layer.
  • Y-sorting uses a world-space anchor so content lower on the screen can render in front of content higher on the screen.

Fixed sorting

Use fixed sorting for backgrounds, overlays, roofs, and content that should always appear in a known order.

Y-sorted content

Use Y-sorting for actors, fences, trees, counters, and other world objects that the player may move in front of or behind.

An Actor’s default Y-sort anchor is near the bottom of its Transform and can be adjusted. A tile’s default anchor is the bottom of its logical cell and may also be overridden by its tile definition.

Large scenery can be split into two parts: a Y-sorted base and a fixed foreground top. This lets the player move correctly around the base while still passing behind branches, roofs, or other upper artwork.