How would I implement an enemy or two that moves around the maze similar to Maze Craze?
I am trying to think of a way to do this, but all I am coming up with is the following:
- Randomly pick a number from 1-4.
- If 1 then enemy moves up, if 2 moves right, if 3 down, if 4 moves left.
- Game checks to see if enemy has collided with the playfield. If yes then go back to randomly pick another number. If no then drawscreen showing enemy in
new position.
The problem with this is, the enemy will have some crazy movements.. and may sometimes just move back and fourth like an idiot.
I don't want it to specifically chase and hunt down the player.. I want it to be somewhat stupid, in which if it's chasing the player, the player can duck down a hall and the enemy may or may not follow him.
Edited by yuppicide, Fri Sep 12, 2008 1:06 PM.















