You're likely recalling "The Day the Earth Stood Still" from the original The Transformers (1984, Season 2, Episode 13). In it, the Dinobots generate a force field that creates a walkable surface in mid-air; Autobots and Decepticons walk on it during a standoff. However, "captains and lieutenants" aren't formal ranks in Transformers—leaders are Optimus Prime and Megatron, with officers like Prowl, Jazz, Starscream, and Soundwave. If this isn't the show you meant, provide the series name, character names, or more plot details for accurate identification.