if (_hero.hitTestObject(_mountain))
{
trace(“they hit”);
_hero.gotoAndStop(‘walking’);
_hero.x+=5;
}
if (_hero.slash.hitTestObject(_enemy))
{
trace("they hit");
_hero.gotoAndStop('idle');
_enemy.visible = false;
}
i know that the second if statement is wrong cuz I definitely don’t know the right code
when the hero attacks/slash the enemy the enemy will disappear .
sorry for disturbance but i hope you guys can help .
thnks in advance !
-raphaelle