The Flintstones: The Rescue of Dino & Hoppy is a 1991 video game developed by Taito for the Nintendo Entertainment System based on The Flintstones TV series.
The gameplay is preceded by a short movie which sets the stage. A man from the 30th century kidnaps Dino and Hoppy, the two pets the Flintstones and the Rubbles. Dino belongs to Fred and Wilma, and Hoppy is the pet of Barney and Betty. Fred's alien friend, Gazoo, lost parts of his time machine due to the evil man from the future. Gazoo is only visible to Fred. With each stage Fred completes, he earns back another piece of the time machine, and Gazoo wields together the pieces progressively. Throughout the stages, Fred runs into Wilma, Barney, Betty, as well as George Jetson in the future stage. Fred has to defeat a boss at each stage. At the end of the map, he gets the last piece and travels to the future, where he has to defeat the man from the 30th century.
Source: Wikipedia, "The Flintstones: The Rescue of Dino & Hoppy", available under the CC-BY-SA License.