Difference between revisions of "SpriteImage"
From Sonic Retro
BSonirachi (talk | contribs) m (Text replacement - "Category:Sonic Retro templates" to "Category:Templates") |
|||
Line 30: | Line 30: | ||
</pre> | </pre> | ||
− | [[Category: | + | [[Category:Templates]]</noinclude> |
Latest revision as of 19:17, 1 January 2022
Note: This is Template:Sprite on Sega Retro.
Display a sprite with optional scaling.
Usage
{{SpriteImage|image name.png|f}}
- f = scaling factor (i.e. 2 is double size).
Cropping sprites
If using a spritesheet, add the following parameters to crop a single sprite:
{{SpriteImage|image name.png|f | crop_width= | crop_height= | crop_x= | crop_y= }}