GameMaker

GameMaker

Peyton Burnham's Room transtions in Gamemaker
Hey, what's up!

So I'm trying to make a game and with the help of Peyton Burnham's tutorials, I'm doing great, but there are two main problems in his video:How to Make a Top Down Shooter in GMS2! (BONUS Part 14: Controller Support and Room Transitions). They are:

1.if I kill all the enemies in room one and then I switch from the first room to the second and then back to the first, the enemies I killed will respawn.

2.If I spawn in the first room and then go to the second and then die there, the respawn function won't work.

Now, I have played around with the code and replaced the room transition code from the Top
Down Shooter code with the RPG one(because of some errors), but if this is an actual problem for some people, then if somebody knows how to fix the problem then I would be happy to know.

Thnx.