Antagonist showing up is random and when

Right now the first level in each world is 1/2 then 2/3 then 3/4 ect.
and he shows up between 5 and and 15 seconds into the level