Hi, is there a way to change a certain group of tiles (imagine a 3x3 patch of tiles) to a different sprite/asset using region and javascript code?
For example assigning the number region 1 to all those 9 tiles, and when the player steps on any of those, the tiles change automatically (using switches)
My guess is that the script is something like:
if ($gameMap.regionId($gameVariables.value(whatever N° you assigned for X), $gameVariables.value(the same with Y)) == 1
*change tiles to \i[index of the new tile] or whatever
I know I can do it with a single event with some switches and then copy that event the number of times that I need it to cover the region that I need tile changed, but it would be so much easier if regions can do that for me
Thank you very much and sorry for my english
For example assigning the number region 1 to all those 9 tiles, and when the player steps on any of those, the tiles change automatically (using switches)
My guess is that the script is something like:
if ($gameMap.regionId($gameVariables.value(whatever N° you assigned for X), $gameVariables.value(the same with Y)) == 1
*change tiles to \i[index of the new tile] or whatever
I know I can do it with a single event with some switches and then copy that event the number of times that I need it to cover the region that I need tile changed, but it would be so much easier if regions can do that for me
Thank you very much and sorry for my english