I guess you should manually check if there is a platform above the ape.
Have you used tiled to build the scene?