Joseph Gordon-Levitt has been cast in the Sin City sequel A Dame to Kill For.

Deadline reports that The Dark Knight Rises star is now out of the running for the lead in Guardians of the Galaxy as a result.

Gordon-Levitt will take the role of Johnny in the Sin City follow-up, which was previously offered to Lone Ranger star Johnny Depp.

Sin City: A Dame to Kill For will be directed by Robert Rodriguez and Frank Miller based on Miller’s graphic novel of the same name.

Jessica Alba, Mickey Rourke, Jaime King and Rosario Dawson are among the cast members who will return for the new movie, while Jamie Chung will replace Devon Aoki.

The film is tipped to hit cinemas in the US on October 4, 2013.