Rabbyt, flipping sprites?

13 views
Skip to first unread message

tsturzl

unread,
Jan 7, 2011, 9:23:32 AM1/7/11
to Rabbyt
I looked through the documentation front to back many times, and I've
done multiple google searches. I just can't seem to find out how to
flip a Rabbyt Sprite. I'm using Pygame and Rabbyt to make a
sidescroller, and I need to flip the character sprite to face the
other direction(art work is only done facing the left).

So how would I go about flipping the sprite? Was this feature
forgotten about in rabbyt, or just not documented? Do I need to use
pygame to flip the sprite?

tsturzl

unread,
Jan 7, 2011, 9:32:44 AM1/7/11
to Rabbyt
I can't seem to find how to flip a sprite in rabbyt no matter where I
look. I checked the documentation, googled dozens of times, and even
went in several IRC's. I've gotten pretty far into a game project, I'd
like to finally complete it, but I need to be able to flip the sprite.

Joseph Marshall

unread,
Jan 7, 2011, 12:16:52 PM1/7/11
to rab...@googlegroups.com
One way to do it would be to flip the tex_shape of the sprite. (http://arcticpaint.com/projects/rabbyt/docs/rabbyt/sprites/Sprite/)

The default is [0, 1, 1, 0], try changing it to [1, 1, 0, 0]


--
You received this message because you are subscribed to the Google Groups "Rabbyt" group.
To post to this group, send email to rab...@googlegroups.com.
To unsubscribe from this group, send email to rabbyt+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rabbyt?hl=en.


Reply all
Reply to author
Forward
0 new messages