Multiply by -1 turns positive number into a negative

Just started using Construct 2? Post your questions here

Post » Tue Dec 13, 2016 1:49 pm

I saw an add for great abs on youtube. Why is it an Add for Abs?
B
34
S
8
G
3
Posts: 169
Reputation: 3,305

Post » Wed Dec 14, 2016 4:46 pm

Oh wow. That is helpful. I wouldn't have thought of adding a negative to an expression. :D


-1 * -1 = 1
and
-1 * 1 = -1

Using abs() or -abs() keeps things simple, and adds a small bit of insurance.
I would use abs() or -abs() over *-1.

:ugeek: One time my ABS light came on in my car and it made me feel strong. :ugeek:
B
68
S
37
G
13
Posts: 242
Reputation: 12,787

Previous

Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 3 guests