Difference between revisions of "Sprite"

From Sega Retro

Line 7: Line 7:
 
|scale={{#if: {{{2|}}} | {{{2}}} | 1 }}
 
|scale={{#if: {{{2|}}} | {{{2}}} | 1 }}
 
|sprite=yes
 
|sprite=yes
}}</includeonly>
+
}}</includeonly><noinclude>
 +
Display a sprite with optional scaling.
 +
 
 +
==Usage==
 +
<tt><nowiki>{{</nowiki>sprite|'''{{green|image name.png}}'''|'''{{red|f}}'''}}</tt>
 +
 
 +
* <tt>{{red|f}}</tt> = scaling factor (i.e. 2 is double size).
 +
 
 +
[[Category:Sega Retro templates]]</noinclude>

Revision as of 13:58, 16 July 2015

Display a sprite with optional scaling.

Usage

{{sprite|image name.png|f}}

  • f = scaling factor (i.e. 2 is double size).