public void scrollPowerUps() { for (Powerup i : pupList) { i.setY(i.getY() + (int) (player1.getVelocity() * 0.3)); } }