Discord
Login
Community
DARK THEME

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

My game: https://microstudio.io/rianstar/ghosthunt/

You need a state machine.

https://microstudio.dev/i/JimB007/simplestatemanager/

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

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community