Difference between revisions of "GetTile"
From Sonic Retro
Line 11: | Line 11: | ||
| crop_y={{#var:y}} | | crop_y={{#var:y}} | ||
}}{{clearvar|x|y}}</includeonly><noinclude> | }}{{clearvar|x|y}}</includeonly><noinclude> | ||
+ | Get the a tile in a tileset with a supplied hexadecimal number: | ||
+ | <pre>{{GetTile | ||
+ | | image=Sonic1 MD Map MZ chunks.png | ||
+ | | tilesize=256 | ||
+ | | id=4 | ||
+ | }}</pre> | ||
{{GetTile | {{GetTile | ||
| image=Sonic1 MD Map MZ chunks.png | | image=Sonic1 MD Map MZ chunks.png | ||
Line 16: | Line 22: | ||
| id=4 | | id=4 | ||
}} | }} | ||
+ | <pre>{{GetTile | ||
+ | | image=Sonic1 MD Map MZ chunks.png | ||
+ | | tilesize=256 | ||
+ | | id=13 | ||
+ | }}</pre> | ||
{{GetTile | {{GetTile | ||
| image=Sonic1 MD Map MZ chunks.png | | image=Sonic1 MD Map MZ chunks.png | ||
Line 21: | Line 32: | ||
| id=13 | | id=13 | ||
}} | }} | ||
+ | <pre>{{GetTile | ||
+ | | image=Sonic1 MD Map MZ chunks.png | ||
+ | | tilesize=256 | ||
+ | | id=32 | ||
+ | }}</pre> | ||
{{GetTile | {{GetTile | ||
| image=Sonic1 MD Map MZ chunks.png | | image=Sonic1 MD Map MZ chunks.png | ||
Line 27: | Line 43: | ||
}} | }} | ||
+ | Unfortunately it's a bit too slow to be of any use. Oh well -[[User:Black Squirrel|Black Squirrel]] ([[User talk:Black Squirrel|talk]]) 08:24, 8 January 2021 (EST) | ||
[[Category:Sonic Retro templates]]</noinclude> | [[Category:Sonic Retro templates]]</noinclude> |
Revision as of 09:24, 8 January 2021
Get the a tile in a tileset with a supplied hexadecimal number:
{{GetTile | image=Sonic1 MD Map MZ chunks.png | tilesize=256 | id=4 }}
{{GetTile | image=Sonic1 MD Map MZ chunks.png | tilesize=256 | id=13 }}
{{GetTile | image=Sonic1 MD Map MZ chunks.png | tilesize=256 | id=32 }}
Unfortunately it's a bit too slow to be of any use. Oh well -Black Squirrel (talk) 08:24, 8 January 2021 (EST)