Offline
If you are trying to make the AIs ( Computer Players, Artificial Intelligence ) to wander around, I would suggest using "Hand-Made" sensors, each a different colored dot for each direction. So when < not [< color [ Sensor Color ] is touching [ Wall Color ] > ] > You will want to keep a record of which direction the Ghost is going and which directions it can go, so make Variables "for this sprite only" named something like "CanGoNorth?" and if it's "1" that means it can, and if it's zero that means it can't. Make a script that detects each direction and sets the variables. If it runs into a wall, then it will choose a random direction it can go in, so a list of directions it can go in ( 1 - North, 2 - South, etc ) and it will pick a random one from the list and it will go that way.
To make it more interesting you can make it so it can't go backward when turning, making it look more like Pac-Man.
Offline
Give it an almost set random path- something like this:
[blocks]
<when green flag clicked>
<forever>
<if><touching[ 'left border']>
<set{ 0 }to( 0)
<set{180 }to( 180)
<point in direction( << <{ 0 }><or> <{ 180 }> >>)
<move( 5 )steps>
[/blocks]
I am guessing that doesn't look great, but you get the idea
Offline