Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.

Changing tilemaps

Peter Tillema edited this page Dec 1, 2018 · 1 revision

If you have a game with multiple levels with the same tileset, you can easily change the tilemap struct such that it points to some different map data. To change it, just do this:

"MAP_DATA"→{PTR}

This loads a pointer to the new map data in the sprite struct. PTR should be the pointer returning from DefineTilemap(. Nothing changes of the tilemap commands, you can just use the same variable.

Clone this wiki locally