You must be logged in to do that.

SetTile

SetTile
void SetTile(int x, int y, int layer, int tile)

Documentation

Changes the tile index at the given coords on the given layer to the given tile.

Note: Coordinates are in terms of tiles, not pixels. In order to convert tiles to pixels do: (pixel coordinate / 16).

Example Usage

SetTile(0, 0, 1, 45); // Changes the tile at (0, 0) on layer 2 to tile 45.
Talkback

There are no talkbacks on this documentation page yet. Post the first?

Post a new comment?

Doc Nav

Your docs
View All Docs

If you log in, you can edit the documentation, or create your own documents and tutorials!

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.