Impressed by the success of the first season of
Batman: The Animated Series on
Fox,
Warner Bros. Pictures assigned Alan Burnett to write a story for a full-length animated film. The original idea for the film was to have Batman being captured by his enemies at
Arkham Asylum and face a
kangaroo court in which the villains try him for making them what they are. The idea's concept, however, was considered "too brainy", as it required Batman to be immobile for a long time, so the idea was later used in the series' episode "Trial", which was aired after the film's release. Although the Joker does play a pivotal role in the film, it was Burnett's intention to tell a story far removed from the television series' regular
rogues gallery. Burnett also cited he "wanted to do a love story with Bruce because no one had really done it on the TV show. I wanted a story that got into his head." Members of the creative team have claimed that they did not intend for the Joker to appear in the film;
Paul Dini has contradicted this, stating that the Joker's role was always part of the story from the beginning of the film's production. The writers were highly cautious of placing the Joker in the film, as they did not want any connection to
Tim Burton's 1989 film
Batman, but writer Michael Reaves said, "We then realized that we could make his appearance serve the story in a way that we never could in live-action." In order to keep the Joker as a solo threat,
Bruce Timm and Burnett convinced frequent
Animated Series writer Dini to not use
Harley Quinn in the film for that reason (although
Arleen Sorkin did a bit part in the film voicing a minor character). The same technique was previously used in the episodes "The Strange Secret of Bruce Wayne" and "Joker's Wild". Conversely, the episode "Harley's Holiday" featured Harley Quinn and did not feature the Joker. Aiding Burnett in writing the script were
Martin Pasko, who handled most of the flashback segments; Reaves, who wrote the
climax; and Dini, who states he "filled in holes here and there". According to Kevin Conroy, Andrea Beaumont was named after voice director
Andrea Romano. The character of Hazel, the cook robot of the World of the Future Fair, was named by Burnett after Hazel the Maid (portrayed by
Shirley Booth),
The Saturday Evening Post protagonist of cartoonist
Ted Key's TV series
Hazel. On the other hand, the design of the Phantasm went into 20 different versions until one was found which convinced the film's crew. According to Burnett, the Phantasm was like the
Grim Reaper with a cape, although the idea was to make her resemble the
Ghost of Christmas Yet to Come of
Charles Dickens' novel
A Christmas Carol, something that even the Joker mentions in the finished version of the film. Early in production, Warner Bros. decided to release
Phantasm theatrically, rather than
straight to video. That left less than a year for production time (most animated features take well over two years from finished story to final release). Due to this decision, the animators had to adjust the layout of scenes in order to accommodate the widescreen theatrical
aspect ratio. The studio granted the filmmakers a large amount of creative control. Warner Bros. also increased the production budget to $6 million, Bruce Timm called "Year Two" an "accidental inspiration" when designing the Phantasm, stating that he did not consciously base the Phantasm's look on the visually and thematically similar to "Year Two" villain the Reaper, while Alan Burnett said he modeled Phantasm's
modus operandi after the
Spider-Man villain
Mysterio, namely "the idea of someone who could disappear into smoke." Conversely, in May 2017, Barr stated he believed
Mask of the Phantasms similarities with "Year Two" were intentional, claiming, "I dropped by the offices of the
BTAS staff twice [and] each time I dropped by I saw a guy—a different guy each time—industriously typing away, with a copy of
Batman: Year Two open beside him. That was when I first became aware of their use of 'Year Two' [for the film]," with the early designs of the Phantasm in particular convincing him to bring up the matter of financial compensation to
Paul Levitz at DC Comics. After telling Levitz, "I really want to keep this in the family," Barr was given a portion of the film's earnings, as well as money for the creation of the Phantasm herself. ==Themes==