pygame not updating x and y
if zombie.x > player.x:
zombie.x =- zombieVel
if zombie.x < player.x:
zombie.x =+ zombieVel
if zombie.y > player.y:
zombie.y =- zombieVel
if zombie.y < player.y:
zombie.y =+ zombieVel
The operators sohould be +=
and -=
instead of =+
=-
i think