Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

How can I edit tiles via javascript ?

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.
 
Top