I will have to look at this code and see what I can do. You could try ImagesCollide() for collision. The only problem would be that you would have to do something like this:
Then you wold have to make the guy move only when the pacmanmoving variable is true. You would be better off searching for more help while I help you because I'm not the greatest programmer. I will probably confuse myself.
If ImagesCollide(PacManImg,PacManX,PacManY,PacManFrame,MazeImg,MazeX,MazeY,0) PacManMoving = 0 Else PacManMoving = 1 EndIf
Then you wold have to make the guy move only when the pacmanmoving variable is true. You would be better off searching for more help while I help you because I'm not the greatest programmer. I will probably confuse myself.