Hidden features #3: negative dimensions

Post your own tutorials, guides and demos.

Post » Sun Feb 22, 2009 3:40 pm

you can give a sprite negative dimensions in order to flip/mirror a sprite manually.

simply make its width or height a negative value.

negative widths will mirror a sprite
negative heights will flip it
B
77
S
13
G
8
Posts: 1,973
Reputation: 9,891

Post » Sun Feb 22, 2009 6:37 pm

Yeah I found that one by accident, thought it was a bug at first, but there are some uses for it.
Image ImageImage
B
169
S
50
G
170
Posts: 8,292
Reputation: 108,728


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 0 guests