Vindicator209 Posted May 8, 2008 Share Posted May 8, 2008 (edited) Hey, I'm trying to find out how to reverse something from a negative to a positive ( or back) like getting $var = 20 to $var = -20 *$var always changes, so I can't just do $var -=40 Any ideas? I'm not really good with math, lol *SHOOT! everytime I finally pull my self to make a thread I figure it out right after XD ( x-1 ) Edited May 8, 2008 by VindicatorOmega [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
weaponx Posted May 8, 2008 Share Posted May 8, 2008 I'm going to assume you found Abs() Link to comment Share on other sites More sharing options...
Vindicator209 Posted May 8, 2008 Author Share Posted May 8, 2008 Actually, I just multiplied it by negative one (-1) [center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now