I think you can fix the error you listed by changing removeChild(tempLaser)
to stage.removeChild(tempLaser)
since the stage is where you added your bullets, so that's where you need to remove them from.
I'll give you a hint on the zombie movement, but you'll probably want to find a programming forum/friend/professor to help with general code design questions like this. In moveEnemies
, you'll need to decide whether the zombie should move left/right (based on whether their x position is larger or smaller than the player's), and whether they should move up/down (based on whether their y position is larger or smaller than the player's).
For example, if their x position is larger than the player's, you would do tempEnemy.x -= tempEnemy.speed
, and if smaller, you would do tempEnemy.x += tempEnemy.speed
. But as I said, this site isn't really made for these types of design questions.