You can just watch the cat follow the trail and if he went off, see it go back to the trail, OR you can drag the cat and it'll go that way and find its way.
I kind of used the book: Learn to Program in Scratch: A Visual... by Majed Marji. There is Space Cat's Trail 2 project