How do you Convert positive number to negative in Bolt A= A-(A*2)

eagleeyez 4 years ago updated by Lazlo Bonin (Lead Developer) 4 years ago 4

Whats the easy way to just change an updating positive float into another variable updating but sign  the new variable with negative?

A= A-(A*2) how to do this in Bolt?

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):

Should be pretty simple. I'll post screenshots of a graph that does this in a few minutes.

Powerful version using formula

Powerful version using formulaSimple version using basic nodesSimple version using basic nodes

Also, you can just multiply by -1 as well... That is WAY more efficient :P

Correct version to negate a numberCorrect version to negate a number

Hey, thanks for this. It cleared up a lot of thinking problems I was haveing and of course 100 x -1 is so simple that I just didn't think about it. So used to using playmaker where you just use an action. I am going to brush up on my maths.