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
41
S
19
G
65
Posts: 1,085
Reputation: 37,842

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
91
S
31
G
102
Posts: 5,234
Reputation: 67,254

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
41
S
19
G
65
Posts: 1,085
Reputation: 37,842


Return to Construct 2 General

Who is online

Users browsing this forum: Mayfly and 7 guests