Being interested in simulations, I wrote this little shapes pursuing a target. Well, quite boring - the pursuers went straight to the target and you just could move the target around the page to avoid being captured.
Paul posted some while ago a pacman shape. That was it! Have the shapes travel along a labyrinth, to bring some difficulty in the game.
So far for the idea. Now, how to realise? How will pacman know where the labyrinth paths are? Analyse it's position relatively to a polyline? Too complicated! Set up a labirinth out of single walls and paths? Too much shapes, thus to much work! And pretty unflexible.
The discovery - for me

! -
spatialsearch . I read some posts from both Junichi and Paul. Waow! So much possibilities. Guys and Girls, you need to explore the world of visio functions outside the shapesheet. Check also
spatialneighbors (That's Paul's COLORS

) and
spatialrelation.
The basic technique being set, I had to think about how to bind the position of the shapes to the labyrinth paths. The shape itself was no good for the task. It could only tell me whether it was within the boundaries or not. But, friends - arranged around the main shape - could tell me whether there is a wall on a certain side or not - and still leave the main shape movable. These 4 companions would each call a CALLTHIS macro to ask where they are. The macro, triggered by the FXMOD event, sets a flag in each of the companions: wall/ no wall.
For better flexibility the main shape would tell it's members to which shape (labyrinth) it refers, by a shape data field.
and ... finally, I got lost, writing the actual aim of the game, namely the pursuing formulas. I'd welcome any help from bored visioneers.
Ps:
how to use: this PacMan is intended to be moved by the direction keys. You can sheat by dragging it with the mouse, but carfully! As the position is controlled by formulas, it is not obvious bringing it back into the labyrinth, once it is outside.
Pps: Would be fun to finish the project, with "food to eat", lives to lose - once you get captured, and so on... In case of interest, please fill in the poll form.