In June 2018, Carrey was cast to play Dr. Robotnik, the main antagonist of the "Sonic the Hedgehog" series, in a film based on the video game franchise. The film was released in February 2020 to positive reviews. Carrey's portrayal of Robotnik was praised by critics and audiences alike, with some considering it one of his best performances in years. Carrey stated during an interview he was interested to return as Robotnik in the future, contrary to his normal disinclination to return for sequels.