David Walliams has taken his literary skills to Hollywood, teaming up with Edgar Wright to co-write an animated movie.