I’m trying to make a walkable path that appears only when you unlock something or obtain all of something does anyone know of some way to do this?
nope. but i can help u tho
You could use a variable that only activates when it reaches a certain point, then run some code to have a path open.
Make a block for your path and have a function that for element value of array of all (special path tile) locations. Set empty at (value) set wall off at (value)
You can do something like the code below. It uses the tilemap utils extension (it’s there in the extensions menu by default). All it does is places a cover on the special tiles (which you can make less obvious than mine), and has a wall on the entrance of the path. When eating the apple, it sets the walls to be off in that area, and makes the cover transparent.
Make duplicate tiles
Use these to draw the path (invisible)
When you want to reveal it, replace these tiles with a different visible onr
This may be complicated but have a 1 pixel sprite spawn at the path start then see richards tilemap astar to get the path from point a to point b then you can add the on sprite kind player overlaps set ____ tile a location.
If this is confusing plz reach out.
I can help…with tilemaps not really sure about that tho
Maybe…Set a variable to zero and when yo touch the thing and its zero it doesn’t let you pass but once you collect a key or something change the variable by 1 and then if you touch the door and the variable is one it lets you pass
…I guess I did know ho to do that??
thanks everyone for the help I’ll post the finished game when it’s done