Mirror a sprite

SGDK only sub forum

Moderator: Stef

Post Reply
orlanrod
Very interested
Posts: 99
Joined: Fri Sep 25, 2015 7:46 pm

Mirror a sprite

Post by orlanrod » Mon Sep 28, 2015 10:12 pm

Back again with another question, and that is how would i mirror a sprite?

Thanks.

orlanrod
Very interested
Posts: 99
Joined: Fri Sep 25, 2015 7:46 pm

Re: Mirror a sprite

Post by orlanrod » Tue Sep 29, 2015 4:28 am

Nevermind, i figured it out. 8)

alko
Very interested
Posts: 172
Joined: Thu Aug 07, 2014 9:31 am
Location: Russian Federation

Re: Mirror a sprite

Post by alko » Fri Dec 11, 2015 6:48 pm

What about mirror a planes on background? :o

Image

Image
Image

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Mirror a sprite

Post by Stef » Fri Dec 11, 2015 7:59 pm

Imo that is not a very used feature but I may eventually add methods for that later ;-)

alko
Very interested
Posts: 172
Joined: Thu Aug 07, 2014 9:31 am
Location: Russian Federation

Re: Mirror a sprite

Post by alko » Fri Dec 11, 2015 8:46 pm

Yes, it could be nice.
it could save the memory through the symmetry of backgrounds.
Image

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Mirror a sprite

Post by Stef » Fri Dec 11, 2015 11:59 pm

If you speak about duplicated / flipped tiles then of course rescomp already supports that feature and generates the tilemap with flipped tiles for you !

alko
Very interested
Posts: 172
Joined: Thu Aug 07, 2014 9:31 am
Location: Russian Federation

Re: Mirror a sprite

Post by alko » Sat Dec 12, 2015 11:35 am

that is, if the image is symmetriс, then rescomp automatically detect it during compression "-1" ?
I understand correctly?
Image
Image

Stef
Very interested
Posts: 3131
Joined: Thu Nov 30, 2006 9:46 pm
Location: France - Sevres
Contact:

Re: Mirror a sprite

Post by Stef » Sat Dec 12, 2015 12:14 pm

alko wrote:that is, if the image is symmetriс, then rescomp automatically detect it during compression "-1" ?
I understand correctly?
Image
It doesn't even need compression to be enabled (that is to compress the tile data), by default rescomp always analyze the image to consider duplicated and flipped tiles and arrange the tilemap data for that =)

Post Reply