The sentence "The movie ended, but we stayed, while the credits rolled" is a compound-complex sentence.
This is because it contains at least two independent clauses ("The movie ended" and "we stayed") and at least one dependent clause ("while the credits rolled").