Level Trouble

So, in my game, there is a slight issue I’ve noticed. Basically, there are levels. The first level is always the same, but then you have a randomizer for all the other levels. This is done through a variable labeled “Level”. Basically, when you hit the goal, the “level” variable will select a random number between 1-X

X = Levels in final game

So basically, whenever it selects a level, what happens is the backround gets rendered, but the level doesn’t seem to render. Can anybody help?

4 Likes

When you set the tilemap, you need to reset the player position back to the start. When you load the second level, the player is so far to the right that you can’t see it!

1 Like


Try adding the circled blocks… Maybe that could work.
(Btw try using arrays so you don’t just keep copy and pasting the same 4 blocks and only edit the tilemap each time)

1 Like

you forgot to respawn the player

1 Like

I have played the game and read your post but I just checked the code where is the code for rendering new levels?

tysm!