Flip Horizontally

For questions about using Classic.

Post » Sun Jan 22, 2012 2:29 pm

Hello, I've added the layer effect "Flip Horizontally", but it doesn't just flip the containing sprites but it flips their position too! I only want it to flip the sprite's images.. Also don't suggest the sprite features "Auto-Mirror" and "Auto-Flip" because they flip at certain angles only.
B
17
S
4
G
5
Posts: 226
Reputation: 4,042

Post » Sun Jan 22, 2012 3:38 pm

I think thats gonna happen until you just rotate the sprite angle and not the layer, remember that if you are rotating the layer, the center of layer its not the center of the sprites!SamCartagenaPR2012-01-22 15:45:12
B
61
S
5
G
5
Posts: 32
Reputation: 6,743

Post » Sun Jan 22, 2012 3:49 pm

I would just make a global var(flip) if you're trying to flip every single sprite. make it equal -1 when you want them flipped, and 1 when you don't


then
sprite.width=sprite.originalwidth*global('flip')lucid2012-01-22 15:49:28
Spriter Dev
B
87
S
21
G
12
Posts: 3,240
Reputation: 16,461

Post » Sun Jan 22, 2012 5:35 pm

[QUOTE=lucid] I would just make a global var(flip) if you're trying to flip every single sprite. make it equal -1 when you want them flipped, and 1 when you don't


then
sprite.width=sprite.originalwidth*global('flip')[/QUOTE]

Oh my god thank-you so much it worked, my game was dependant on this flip feature. thank-you lots and lots you're my hero! (no homo :D)
B
17
S
4
G
5
Posts: 226
Reputation: 4,042


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests