You're thinking of
House 2.
Some guy and his doltish friend move into a house that for some reason or another contains a portal to multiple dimensions. I don't remember where the caterpillar-dog came from, but it's definitely in the movie. All-in-all, a pretty entertaining '80s comedy.