im a newbie and im learning java just week ago. I wonder how i cant make the ball bounce in one axis only (the X axis)
im not good in logic:( and i want that logic to be in one event.
if(x<0){
++x;//go right
}else if(x>500)
{--x;//go left
}
please help me. Thanks.