Skip to main content

Using Tile Map Layers for Game Logic

·88 words·1 min

Added pseudopods to the mix.

Here’s a new trick in my tool belt.

I added a second tile map layer which is never shown to the player. It’s a logic layer which lets me define areas where mobs should be grouped together—green, orange, yellow, and pinkle—and the trigger tiles that will activate those groups of mobs. Now when the player enters the center of the big green room or the entrances of the smaller rooms, the mobs from that group will all activate and approach the player.