Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(1 edit)

The best way to fix this is to make a separate, second wall sprite and make that wall both a wall and a key. That way all the rest of your walls use the sprite that's only a wall. Hope that makes sense! Let me know if you need help.

will the sprite layout matter? my current sheet is kinda messy. 

ah, also I mean that the code that checks if a block is a key thinks that the wall flag 0 is the same is key flag 1.

https://cubscouter.itch.io/first-draft-of-3am-project

No worries, it works now after copy-pasting your exact code into it... must have made some dumb mistake... lol. Thanks for your assistance! Great tutorial.

Just saw your other replies. Glad you got it working. It's possible wall and key were set to the same number in the code? Not sure. Well, feel free to reach out if you run into any other problems. Great work so far! :D The sprites look great and I love the premise of the game, haha.