Originally Posted by protocida
He was going to be in the dimensional prison in the movie, and only come to Earth in the third act, when Megatron uncovers the Sun Harvester. The novalization and the comic book adaptation, both based on an early version of the Script, feature this.
To be honest, they probably should have kept it like this. But I just figured he didnt come to Earth before because Prime was there.