It is the only Tyler Perry scripted film not directed by Perry himself .
It was based on a play written by Tyler Perry .