Microsoft MakeCode

On Sprite overlaps (with array of tiles) at location

So I have noticed my students often use several of these blocks (

on Sprite of kind Player overlaps with at location

with the same code in them. I would like to create an array with the appropriate tiles (I can do this) and insert the array in place of the single tile (this does not work). This would be much better practice for my students and stop them needing to update their code in several locations.

Your students can define a function and call the function in all those blocks so that your students can edit one function and all of it changes.