Changing Tilemaps

I’m trying to change the tilemap after each game, but it isn’t working. I have a variable called mapNumber, and whenever someone dies, mapNumber increases by 1. Each number that mapNumber is corresponds to a different tilemap. However, it isn’t working. Why?


The reason that the tilemap’s not changing is because you’re making the game end, which displays the game over screen, and then resets the game (and all variables along with it).

1 Like

Is there any way to fix this issue? If not, is there a different method I can use instead of incrementing a variable to change the tilemap?

You could use the settings extension. I can post pictures later.

As Blobbey said, you are resetting the game when you display the game over screen. You need to display something on your own so that the variables doesen’t get reset. Or you can use the settings extension, which saves your variables.

Hope it helps!

Use the settings extension to save some variables.

1 Like