I want to do it:
I have a private variable called HorizontalVelocity and it is equal to 6
I want to change the positive value into negative, or if it was negative (Iqual to -6), convart it into positive.
Using a standard programming language like C/C++, it would be: HorizontalVelocity=-HorizontalVelocity, but I don't know what do I have to write it in Construct (The private variable belongs to a sprite called "Ball"). The action would be "Set value to a private variable", but I don't know what do I have to write in the expression field (It should be an equivalent for HorizontalVelocity=-HorizontalVelocity; in C/C++)
Please, I'll be waiting for your help.
Where is Scirra from?. Is Scirra from the United States of America?. I could imagine that Construct is in American English because (Behavior, for example). British English: Behaviour.
Bye'!!!
Nicol�s Mat�as Funtalas from Buenos Aires, Argentina