Sprite
From NEC Retro
Revision as of 14:09, 4 January 2022 by SorachiJirachi (talk | contribs) (Created page with "<includeonly>{{cropimage |image={{{1|}}} |width={{#if: {{{crop_width|}}} | {{{crop_width}}} | }} |height={{#if: {{{crop_height|}}} | {{{crop_height}}} | }} |x={{#if: {{{crop_x...")
Revision as of 14:09, 4 January 2022 by SorachiJirachi (talk | contribs) (Created page with "<includeonly>{{cropimage |image={{{1|}}} |width={{#if: {{{crop_width|}}} | {{{crop_width}}} | }} |height={{#if: {{{crop_height|}}} | {{{crop_height}}} | }} |x={{#if: {{{crop_x...")
Display a sprite with optional scaling.
Usage
{{sprite|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:
{{sprite|image name.png|f | crop_width= | crop_height= | crop_x= | crop_y= }}