Ricky Jay, a character actor known for his roles in such films as “Boogie Nights,” “Magnolia,” “Tomorrow Never Dies” and “The Spanish Prisoner,” has died. He was 72.

“I am sorry to share that my remarkable friend, teacher, collaborator and coconspirator is gone,” tweeted Michael Weber, Jay’s partner in the Deceptive Practices consulting firm, which advises movie, TV and theater projects on various illusions and magic secrets needed during their productions.

Among the films they consulted on were “Forrest Gump,” “The Prestige,” “The Illusionist” and “Oceans Thirteen.”

In addition to guest starring roles in numerous TV shows, including “Deadwood,” “Lie to Me,” Flashforward” and “The X-Files,” Jay was an accomplished magician and an expert card technician. He is also listed in the Guiness Book of World Records for throwing a playing card 190-feet at 90 mph.