Thomas Cyrix
Villager
- Xy$
- 0.00
Hello
Although I searched, I cannot find something as simple as :
How can I edit a tile in a map (in javascript) ?
I can't believe it's so rare I can't see it in any place...
Currently I just can get this :
$dataMap.data[(z * height + y) * width + x] = something;
But... It simply does not show any change in game !
I tried update and refresh functions but still nothing...
So is there a simple command to change a tile on the map ?
Thanks for any help you could provide.
Although I searched, I cannot find something as simple as :
How can I edit a tile in a map (in javascript) ?
I can't believe it's so rare I can't see it in any place...
Currently I just can get this :
$dataMap.data[(z * height + y) * width + x] = something;
But... It simply does not show any change in game !
I tried update and refresh functions but still nothing...
So is there a simple command to change a tile on the map ?
Thanks for any help you could provide.