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
45
S
20
G
65
Posts: 1,115
Reputation: 38,121

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
92
S
32
G
109
Posts: 5,290
Reputation: 70,991

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
45
S
20
G
65
Posts: 1,115
Reputation: 38,121


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 19 guests