can any one tell me how to make just a plain square move i know
if (Key.isDown( ))
but what code do u add to make it move??
just a stupid Q
Printable View
can any one tell me how to make just a plain square move i know
if (Key.isDown( ))
but what code do u add to make it move??
just a stupid Q
-super simple
-harder;Code:if (Key.isDown(Key.RIGHT)) {
_x += 1;
}
Code:if (Key.isDown(Key.RIGHT)) {
x += 1;
} else {
x *= .8;
}
_x += x;
ya i know its really simple but i just wanted to be sure i was right!!
thanks anyways!!