hi i have already got the code for the platform to move down but am not sure how to make it go up again... the code i already have is as follows:
public void act()
{
setLocation(getX(), getY() + 4);
}


private boolean down = true; public void act() { if(getY() >= getWorld().getHeight()) { down = false; } else if(getY() <= 0) { down = true; } if(down) { setLocation(getX(), getY()+4); } else { setLocation (getX(), getY()-4); } }