TileUntil

Is there a way to use tileuntil to make many levels in a game? If there is, how do you do it?

Yes! TileUntil is actually designed for dynamically loading and unloading tilemaps, which is perfect for making multiple levels. The general idea is:

  1. Create separate tilemaps for each level.
  2. Use TileUntil blocks to set conditions for when a tilemap should load or unload (for example, when the player reaches the end of a level).
  3. TileUntil will automatically unload the previous tilemap and load the next one, so you don’t have to manually stack them.

Basically, instead of connecting tilemaps yourself, TileUntil handles the level transitions automatically. You just set the “until” condition for each tilemap and it will swap them as needed.