I'm making a run and jump game so I need the floor to be constantly moving one direction. I have made my floor width 2000 pixels so it can last about 1 second. I need to be able to loop the codes so that it will be moving until my character hits an object.
very new to coding
public void act()
{
setLocation(getX() -8 , getY());
}
