How can I resize my sprite without loosing mirror state?

Just started using Construct 2? Post your questions here

Post » Fri Jul 07, 2017 8:56 pm

HI all,

I have an issue where my sprite is set to 'mirrored' but if I change the size of the sprite
using an event, the sprite resets to 'non-mirrored' state.

How can I resize my sprite without loosing mirror state?
B
4
Posts: 2
Reputation: 204

Post » Fri Jul 07, 2017 10:33 pm

What is the size of the sprite in its mirrored state?
Image ImageImage
B
171
S
50
G
180
Posts: 8,396
Reputation: 113,986

Post » Fri Jul 07, 2017 11:24 pm

(self.x<0?-xsize:xsize)
B
47
S
22
G
65
Posts: 1,127
Reputation: 38,395

Post » Sun Jul 09, 2017 7:33 pm

Perhaps try changing the object scale, not size? If I recall that should preserve mirror state just fine.
Image



Coming soon on Steam!
B
16
S
9
G
3
Posts: 209
Reputation: 3,476

Post » Fri Jul 14, 2017 1:22 pm

I ended up just saving the mirror state inside a instance variable & then resetting mirror state after resize.
Seems to all be working fine, just not the behavior I expected.

Thanks for all the responses.
B
4
Posts: 2
Reputation: 204


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 3 guests