Edit: ok I got it working, just want to know if this is the best way of hittest in the main timeline
hp = 100
onEnterFrame = function()
{
char()
enemy()
function char()
{
char = attachMovie (“char”, char1, 100);
}
function enemy()
{
TestEnemy = attachMovie ("TestEnemy", TestEnemy1, 200);
if(TestEnemy.hitTest(char));
{
eHit();
}
}
function eHit()
{
hp -= 1;
}
}
Edit2: ok it doesn’t work. Apparently the mcs are always touching with this code.
frame code is so difficult =(