The scene in which Dark Helmet (Rick Moranis) is playing with his dolls was not in the script. Mel Brooks came up with the idea on the set one day, and told it to Moranis, who then improvised the entire scene, including the dialogue.
The Millennium Falcon from Star Wars: Episode IV - A New Hope (1977) makes a cameo appearance in this movie. Look closely at the exterior shot of the Space Diner and you can spot it parked there among the other space vehicles.
Every time Dark Helmet has his face covered, his voice is lower and more basal, similar to James Earl Jones when he played Darth Vader. In the DVD commentary, Mel Brooks says that the idea of Dark Helmet's voice changing whenever his face was covered was actually Rick Moranis's idea.
In the DVD commentary, Mel Brooks talks about how difficult it was playing the Yogurt character. The gold-colored makeup gave him a terrible rash on his face and neck (necessitating the shooting of all of Yogurt's scenes out of sequence), also his knees were hurting constantly since he had to walk around on his knees even though he was wearing kneepads. Brooks also goes on to say that in spite of the difficulties, he enjoyed playing as Yogurt tremendously and that it was all worth it.
Of all the many jokes in this film, Mel Brooks says that the two he is most proud of are the running gag about merchandising ("Spaceballs: the Breakfast Cereal", "Spaceballs: The Tee-Shirt", etc.) and Col. Sandurz's renting Spaceballs (1987) before it was finished.
In a 2013 television interview (shorty before receiving the AFI Lifetime Achievement Award) Mel Brooks stated that he personally obtained George Lucas' full permission to parody any and all things Star Wars related. But, on one condition: that absolutely no merchandise of any kind be produced from the film. This is the reason why all Yogurt and the dinks do is merchandising (it's also why none of the merchandise seen is the film was ever mass produced or publicly sold in any way).
Spaceballs (1987) merchandise shown in the movie include: bed sheet, flame thrower, lunch box, cornflakes, towels, Yogurt figure, toilet paper, shaving cream, place mat, action figures. As part of the fair-use agreement between Mel Brooks and George Lucas, no legitimate Spaceballs merchandise ever existed in the real world. The lunch box and coloring book are simply The Transformers (1984) products with a Spaceballs (1987) logo stuck on them.
Mel Brooks came up with the idea for this film when he discovered he had yet to spoof space movies, since he already destroyed the western films with Blazing Saddles (1974), made fun of the horror genre with Young Frankenstein (1974), and gave silent movies the ax with Silent Movie (1976).
In the scene where Dark Helmet is dressed in safari clothes searching for Lone Starr and the others with binoculars, he is on top of a floating vehicle. In reality, the vehicle isn't floating or suspended on wires of any kind, but on top of a platform that was surrounded by mirrors that reflected the sand around it to give it the appearance of floating.
The castle on Druidia is King Ludwig II's Neuschwanstein Castle in Bavaria. It has been modified by matte painting with additional ramps. Neuschwanstein Castle has been featured in many motion pictures, and is the original inspiration for the castle at Disneyland.
The Barf costume was operated by three people. John Candy operated Barf's tail using a hidden control in his paw, while two assistants each controlled an ear. Candy's costume was powered by a 30-pound battery that he wore on his back.
A full face mask resembling a wrinkled bulldog was originally constructed for the character of Barf, but Mel Brooks quipped that 'if they were going to hide John Candy behind a mask, he might as well hire someone else for half the price'. A nose and upper lip piece was tried next, which Candy approved but again Brooks did not. They finally settled on animatronic ears connected to a hairpiece, a small nose application and a patch over one eye just like the dog from the 'Our Gang' shorts.
When coming up with a new title for the film, replacing the original title "Planet Moron", when they heard about the British science fiction spoof "Morons from Outer Space". Mel Brooks, Ronnie Graham and Thomas Meehan went through all the letters of the alphabet, to search for a word to add to "Space", which Thomas Meehan suggested. But, Mel Brooks spilled a drink and shouted "Balls!" and Ronnie Graham said "Spaceballs!" which became the film's new and final title and they came up with the idea that the villains The Spaceballs, would wear ball shaped helmets.
George Lucas' Industrial Light and Magic constructed the puppet of the chest-burster for the film. The main effects unit for the film was Apogee, Inc. This was the company headed by John Dykstra that split off from ILM in 1978 when Lucasfilm moved to Marin County. Thus, Spaceballs marked the first time since Star Wars: Episode IV - A New Hope (1977) that the two units shared work on a single project.
Six complete Dot Matrix suits were built for Lorene Yarnell Jansson to wear and all of them were used up due to breakage on set. For the interior scenes, the feet were outfitted with roller skates, but for the desert exteriors she was given flat-bottomed shoes. Dot's face was somewhat inspired by Joan Rivers who had already been contracted to provide the voice.
"Mr. Rental", the instant-cassette machine on Spaceball-1 features VHS tapes of Friday the 13th (1980), Rocky (1976) and over a dozen of their "sequels" on the bottom shelf (the spines are fake). The middle shelf features authentic VHS copies of Mel Brooks' films (as of 1987 - the most recent, obviously, being Spaceballs (1987)). The top shelf features the same tapes from the middle shelf, except with the spines facing forward.
When initiating the metamorphosis of Spaceball-1 into the giant maid, Dark Helmet leans towards Col. Sandurz and asks "Ready, Kafka?" This is a reference to the novella "Die Verwandlung" by Austrian-Hungarian author Franz Kafka, a story about a man who finds himself slowly turning into an insect. The most common English translations of said piece are titled "Metamorphosis".
After King Roland gives the combination to the air shield of planet Druidia, and the light goes out and on again, the doctor is seen making out with the nurse. Dark Helmet then tells him to go the golf course and "work on his putts". This is a pun, as "putz" in Hebrew/Yiddish is slang for penis.
In one scene, Lonestar says he was born "somewhere in the Ford Galaxy." This is a joke-reference to a model of car produced by the Ford company (the Ford Galaxie 500), as well as to Harrison Ford of Star Wars: Episode IV - A New Hope (1977).
In the DVD Commentary, Mel Brooks talks about the various Jewish-related jokes (i.e. "Druish Princess", etc.) and how he felt ashamed for putting those jokes in the movie in the first place, but also felt proud for leaving them in the movie.
Daphne Zuniga would later go onto star in The Fly II (1989), which Mel Brooks' production company Brooksfilms presented. It was Brooks who suggested to director Chris Walas, that the actress play the lead female role Beth Logan.
In R.L Stine's novelization of the film, when Lone Starr, Barf, Princess Vespa and Dot Matrix meet Yogurt in the temple. Barf asks Yogurt, if he was the leader of the Red Eye Knights and the possessor of the force and Yogurt replies that it wasn't him, but Alec Guinness.
In many movies, Mel Brooks alludes to a sequel that ultimately never happens. In "Spaceballs", Yogurt mentions he hopes he and Lone Starr will see each other in "Spaceballs 2: The Search for More Money".