I was trying to imitate the movement og the ghosts / enemies in Pacman.
They need to move around in either a fixed pattern or randomly in a maze. (up, down, left, right)
How would you do that?
Have you seen/tried the Pacman tutorial HERE ?
Develop games in your browser. Powerful, performant & highly capable.