Movies - TV
The Classic Star Trek Episode That Inspired Avengers: Endgame
At a Vudu Viewing Party where fans could watch a movie with Kevin Feige, the head of Marvel Studios, he was asked what his inspiration was to set “Avengers: Endgame” five years after Thanos had wiped out half the universe in "Avengers: Infinity War.” Feige revealed that it was the last episode of "Star Trek: The Next Generation" that was titled "All Good Things..."
All Good Things...
In the episode, Picard is in the body of his past self and also his future self. The trickster Q is behind Picard’s mental time jumps and leads him to a strange deep-space phenomenon. Picard determines that his actions in the past aren’t affecting the present, which is either evidence Q is creating the events of the past or they’re hallucinations.
Avengers: Endgame
“Endgame” also had a time travel plot where the heroes could go back to previous movies. The temporal playfulness of going back in time, both in "All Good Things..." and in "Endgame," allowed for a fun, twisty story wherein the events of the past could play into the growth of the characters in the present.
Different Motives
The difference between how time travel is used in “All Good Things…” and “Endgame” is that the former uses it to solve a mystery and explore Picard’s brain. In the latter, however, time travel is about fixing the present by bringing back half of the universe lost in a single snap.