HELP ME PLIS.
I'm making a game in dungeon style, and i wanna know how can i do a code to change the room when the player touch in a specific place of map
I'm making a game in dungeon style, and i wanna know how can i do a code to change the room when the player touch in a specific place of map
You need a state machine.
The machine will make it easier for you to move between different phases of the game - title screen, game, pause. But it will also allow you to move between maps.
You start this machine. You load 1 map and set the player.
When the player has a collision with the door, you move him to the second map. You load the second map and set the player.
https://microstudio.dev/i/TwiceUponATime/tilemapcollision/ - collision
https://microstudio.dev/i/MurdexStudio/advancedmap/ - hitbox tilemap