Constraining a Sprite to a Path

For construction of a game in the style of Pacman, what is a good strategy for constraining a sprite to a path? If someone could point to a good implementation of this in the Snap! games collection, that would be helpful. Thanks in advance for any assistance from some of the avid games developers on the forum.

image

Use untitled script pic. If that's true, back up a little (so the sprite is no longer touching the wall) and turn 90° one way or the other.

So essentially it would be the equivalent of "Bounce" in a Pong style game. (Thanks!)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.