player connection

I have a level in my game where the player jumps on top of enemy to complete the level.
but when the enemy moves the player does not and falls of and loses.

Can you post the code (with code tags from the text ribbon please) where the level switch is supposed to happen?