K... is this way any good... or should I use another

K im making a super mario game right and i’m working on the bad guys right now…

currently ill give them a predefined path and if mario walks into them or something he’ll either shrink or die, depending on his size.

anywayz… currently i was thinking of having a little line on the head of each of the bad guys and if mario touched it… the goomba’s would die…

ex of what i would put on the line of the mc on each bad guy

onClipEvent (enterFrame) {
if (mario.hitTest(_root.badguy1.hitter)) {
_root.mario._y += 6;
}
if (mario.hitTest(_root.badguy1.hitter)) {
_root.badguy1.hitter.gotoAndPlay(“goombadead”);
}
}

this is what i am gonna do now… but i know theres gotta be a better way… any suggestions