Hi all,
I am trying to use this script to change a tile in my tilemap from whatever it is to tileID "123"
const tm = runtime.objects.Tilemap.getFirstInstance();
const player = runtime.objects.Player.getFirstInstance();
tm.setTileAt(player.x,player.y,123)
I thought this would be the way to script this but its not updating the tilemap.
What am I missing here?
Thanks in advance!