I need the zombie which is spawned on the left and right of the character, but I'm not sure on how to make the zombie go to the right and left depending on the where the character is. Currently the zombie just: (placeholder)
move(-1);
He comes from the right side of the screen, but if it were to be spawned on the left side it would run into the wall. Also if i were to jump over the zombies approaching from the right, they would continue until they hit the wall on the left.

