Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

PICO-8: Top-Down Adventure Game Tutorial

A beginner-level tutorial for making a top-down adventure game in PICO-8. · By MBoffin (Dylan Bennett)

wall keys

A topic by KROMBERG 2000 created Oct 06, 2020 Views: 277 Replies: 7
Viewing posts 1 to 2

when I set one wall as a key, all the walls become keys

anyone know how to fix this?

pretty much it makes the wall flag into a keys flag

Developer (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.

Developer

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.