80s/90s kid’s movie – bearded man from future (or another world) shows up

I wish I had more to go on here … I didn’t even see the movie, I just read the book based on the movie when I was a kid in the 90s.  There’s a little boy and a strange man shows up – he’s either from the future or another world?  His name has either “cat” or “dog” or some other animal name in it, but I think that’s irrelevant to anything that actually happens.  He sometimes speaks in riddles that turn out to be prophetic.  At one point he correctly predicts which horse is going to win a horse race.  PLEASE HELP.

Got something to say?