I managed to combine the zelda code with the swordfighting code from the AUM. The player now has an enemy and is able to die. Now I am working on different attacks. The problem is that the object lock does not work for the enemy (I don't know why) and that it has no gravity.