I basically have something moving along the _x plane according to the movement of a slidebar. But I want it to move in the opposite direction! Any ideas?How to make an integer a negative integer in actionscript?
subtract your integer from 0How to make an integer a negative integer in actionscript?
try
int x *= -1;
or
int x = x * -1;
to flip a a positive to a negative and the opposite when you need the positive number again.
this should do the trick
x = x*(-1);
http://www.vebguru.com
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment