<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Libwiisprite: Flipping Sprites Horizontally</title>
<description> Could someone provide me an example of flipping of libwiisprite Sprite horizontally? For example, I&amp;#039;m writing a platformer so when I press left I need to flip the Sprite horizontally to make it look like the character changed directions without the need for additional art. 180 degree rotations dont accomplish this. I&amp;#039;m thinking maybe use the reference pixel member of the sprite class?

Thanks in advance to any and all replies I recieve. All help is greatly appreciated.

-Arikado</description><link>http://forum.wiibrew.org/read.php?11,9861,9861#msg-9861</link><lastBuildDate>Thu, 13 Aug 2026 14:57:14 +0200</lastBuildDate>
<generator>Phorum 5.2.23</generator>
<item>
<guid>http://forum.wiibrew.org/read.php?11,9861,10508#msg-10508</guid>
<title>Re: Libwiisprite: Flipping Sprites Horizontally</title><link>http://forum.wiibrew.org/read.php?11,9861,10508#msg-10508</link><description><![CDATA[ Hi Dykam,<br /><br />In the standard code release of LibWiiSprite, yes, that&#039;s the way to do it. Of course, if you have the source, it&#039;s not much work (and much more run-time-efficient) to include an extra enumeration value to make a direct transform for vertical flipping! This does mean you have four different draw options (normal, flipped horizontal, flipped vertical and flipped both), which would increase the size of your object code a little, but (a) probably not enough to seriously damage your load times or memory expense, and (b) offsettable by rewriting the draw code to reduce the number GX function calls (hint - use integer variables to provide your table indices!).]]></description>
<dc:creator>Myu0</dc:creator>
<category>Coding</category><pubDate>Sun, 22 Feb 2009 23:14:05 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,9861,10492#msg-10492</guid>
<title>Re: Libwiisprite: Flipping Sprites Horizontally</title><link>http://forum.wiibrew.org/read.php?11,9861,10492#msg-10492</link><description><![CDATA[ And flipping vertical is rotating 180 + horizontal mirror? Or does a shorter way exist.]]></description>
<dc:creator>Dykam</dc:creator>
<category>Coding</category><pubDate>Sun, 22 Feb 2009 20:40:10 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,9861,9872#msg-9872</guid>
<title>Re: Libwiisprite: Flipping Sprites Horizontally</title><link>http://forum.wiibrew.org/read.php?11,9861,9872#msg-9872</link><description><![CDATA[ Thanks a ton. It worked like a charm!]]></description>
<dc:creator>Arikado</dc:creator>
<category>Coding</category><pubDate>Sun, 15 Feb 2009 18:12:14 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,9861,9869#msg-9869</guid>
<title>Re: Libwiisprite: Flipping Sprites Horizontally</title><link>http://forum.wiibrew.org/read.php?11,9861,9869#msg-9869</link><description><![CDATA[ Sorry, my bad. The Equals wasn&#039;t a code operator. What I meant was:<br /><br />sprite.SetTransform(1); // This flips "sprite" horizontally<br />sprite.SetTransform(0); // This restores "sprite" to normal orientation<br />sprite.SetTransform(TRANS_MIRROR ); // This does the same as SetTransform(1)<br />sprite.SetTransform(TRANS_NONE ); // This does the same as SetTransform(0)]]></description>
<dc:creator>Myu0</dc:creator>
<category>Coding</category><pubDate>Sun, 15 Feb 2009 17:41:34 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,9861,9867#msg-9867</guid>
<title>Re: Libwiisprite: Flipping Sprites Horizontally</title><link>http://forum.wiibrew.org/read.php?11,9861,9867#msg-9867</link><description><![CDATA[ Thank you very much. Could you please elaborate on what "mirror image" and "right-way-up" are? Are they just additional images or something else?]]></description>
<dc:creator>Arikado</dc:creator>
<category>Coding</category><pubDate>Sun, 15 Feb 2009 17:33:30 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,9861,9865#msg-9865</guid>
<title>Re: Libwiisprite: Flipping Sprites Horizontally</title><link>http://forum.wiibrew.org/read.php?11,9861,9865#msg-9865</link><description><![CDATA[ sprite.SetTransform(1); = mirror image = sprite.SetTransform(TRANS_MIRROR );<br />sprite.SetTransform(0); = right-way-up = sprite.SetTransform(TRANS_NONE );<br /><br />Hope that helps!]]></description>
<dc:creator>Myu0</dc:creator>
<category>Coding</category><pubDate>Sun, 15 Feb 2009 17:27:38 +0100</pubDate></item>
<item>
<guid>http://forum.wiibrew.org/read.php?11,9861,9861#msg-9861</guid>
<title>Libwiisprite: Flipping Sprites Horizontally</title><link>http://forum.wiibrew.org/read.php?11,9861,9861#msg-9861</link><description><![CDATA[ Could someone provide me an example of flipping of libwiisprite Sprite horizontally? For example, I&#039;m writing a platformer so when I press left I need to flip the Sprite horizontally to make it look like the character changed directions without the need for additional art. 180 degree rotations dont accomplish this. I&#039;m thinking maybe use the reference pixel member of the sprite class?<br /><br />Thanks in advance to any and all replies I recieve. All help is greatly appreciated.<br /><br />-Arikado]]></description>
<dc:creator>Arikado</dc:creator>
<category>Coding</category><pubDate>Sun, 15 Feb 2009 16:30:57 +0100</pubDate></item>
</channel>
</rss>