Mirrored Scaled Images Fail (r103.2)

Bugs will be moved here once resolved.

Post » Sun Sep 16, 2012 6:10 pm

Specs:
Construct 2 64-bit r103.2
Windows 7 64-bit
Intel Celeron

When a sprite is scaled, mirroring the sprite seems to fail.

Bug capx:
Mirror Bug capx
B
30
S
6
G
8
Posts: 232
Reputation: 6,119

Post » Sun Sep 16, 2012 7:30 pm

It seems scaling undoes the mirroring. If you put 'set mirrored' after 'set scale' it works.
B
54
S
28
G
18
Posts: 1,520
Reputation: 24,990

Post » Sun Sep 16, 2012 8:37 pm

@Ramones
Yeah I think you're right. I have a feeling it has to do with the fact that using Set Mirrored just makes the Width a negative value.

Interestingly, I just tested Set Width = -self.Width instead of using Set Mirror, and it has the same problem, has to be done after the scale.
B
30
S
6
G
8
Posts: 232
Reputation: 6,119

Post » Mon Sep 17, 2012 2:39 pm

'Set scale' was a shortcut for 'Set width to OriginalWidth * scale, set height to OriginalHeight * scale', so this did undo mirroring or flipping. I've changed it for the next build to preserve the mirror/flip state, so that should fix this.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,518


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest