How do i make it so enemies stop spawning after tilemap has changed

how do i make it so enemies stop spawning after tilemap has changed, i am trying to make a dungeon type game but when i clear the first floor the enemies keep spawning

3 Likes

on tilemap unloaded {tilemap} do

destroy all sprites of kind [enemy]
destroy all sprites of kind [enemy2]

(rinse and repeat for however many enemies are in your game)

call function [enemies]
call function [ranged_enemies]

(call all the functions that spawn the enemies)

Welcome to the comunity @james-jamerson there are two ways I can help.
1.If you post your code I can fix it.
2.you could use a variable and set it to true when enemy’s spawn and false when they don’t.
Kind of like this. :small_red_triangle_down:
Screenshot 2024-04-23 10.36.23 AM
I hope this is helpful.

i dont know how to give code but i found how to copy the link to the game if it helps: https://arcade.makecode.com/S23723-90059-15759-77657

1 Like

It helps but where do you want the enemy’s to stop spawning?