I’m trying to code a game where you can walk around your house and get multiple endings. I don’t currently have much but I’m struggling to make the doors work. I’ve resorted to making the handle on the door on a different side but that limits me to 4 rooms with doors like this. If I make two tiles that are identical it gets them mixed up somehow and they both bring you to the same room. Here’s my game if you want to see it.
1 Like
There’s definitely a less janky way to fix this, but if you set the background color to that tan ground color, you can leave out a pixel of the same color in the door tile (making it transparent). If you leave out a different pixel in a separate tile, the background color will fill the transparent pixel with the correct color, so they will look the same to the player, but the code will not get confused between tiles.
Thanks!
1 Like