width of mirrored image

Just started using Construct 2? Post your questions here

Post » Wed Apr 16, 2014 5:45 pm

My game involve comparison of width of objects,but when i use the mirrored images,its width become negative and always smaller than the other objects,how do i make it always positive?(without using instance variable)
B
17
S
4
G
1
Posts: 203
Reputation: 1,583

Post » Wed Apr 16, 2014 6:08 pm

abs(sprite.width) will give you the positive value.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,670

Post » Thu Apr 17, 2014 5:04 am

thank you! it works!
B
17
S
4
G
1
Posts: 203
Reputation: 1,583


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest