It is directed by Eric Darnell and written by Etan Cohen . Madagascar : Escape 2 Africa ( or simply just Madagascar 2 ) is a 2008 animated film written by Etan Cohen , and directed by Eric Darnell and Tom McGrath .