sprites staying on one tile

can I make a sprite stay on one kind of tile with a random velocity? I am making a Jurassic Park game and want to have the guests stay on the paths while they can also move around, and I do not want the player to have to place walls around the paths.

1 Like

I like this question! Here’s a simple way to do this: