mirrored expression?

Discussion and feedback on Construct 2

Post » Mon Apr 25, 2016 9:12 pm

How come the mirrored state isn't in the expressions? I can't count how many times I have needed this and must resort to creating an instance variable.
B
48
S
23
G
66
Posts: 1,144
Reputation: 39,059

Post » Mon Apr 25, 2016 9:23 pm

C2 considers a sprite mirrored if it's width is negative, so you could use (sprite.width<0) in your expressions to see if it is mirrored.
B
94
S
33
G
118
Posts: 5,396
Reputation: 75,853

Post » Mon Apr 25, 2016 9:56 pm

oh wow, thanks!
I think I remember learning this in the past, but I guess I forgot about it.
B
48
S
23
G
66
Posts: 1,144
Reputation: 39,059


Return to Construct 2 General

Who is online

Users browsing this forum: Yahoo [Bot] and 9 guests