How do I create a wall at a certain tile type

I am making a game where you press B to toggle on and off platforms. How do I turn walls on/off at these tiles when B is pressed?

Game: https://makecode.com/_0HsDMRCU0cL4

Note: the mechanic isn’t used until the third level.

1 Like

You can do this:
image
and enter the wall that you want to toggle on in the “array of ___ locations” and you can change what wall you want to replace (set walll on/off) and what tile you want to change it to (set ___ at value)

Oops! I thought it randomly deleted my post, so I made a second one, which is this one. Don’t mind this post, thanks.