hmmm in my program actually, the game program im writing, there is a method that keeps track of the movement of my animations which has a variable x..
public void theMethod() {
x += .1;
}
...
Type: Posts; User: chronoz13
hmmm in my program actually, the game program im writing, there is a method that keeps track of the movement of my animations which has a variable x..
public void theMethod() {
x += .1;
}
...
i was wondering whats the difference between the two
int x = 0;
x += .1;
x = x + .1;
given that x is an integer type