rendered paste bodyonClipEvent(enterFrame)
{
startDrag(this,true,30,250,520,400);
if(this.hitTest(_root.mantashot))
{
this.gotoAndPlay("hit");
}
else
{
this.gotoAndStop("normal");
}
if(hero ==1)
{
if(!_root.ourHeroShotInAir)
{
_root.shot._x = _root.hero._x;
_root.shot._y = _root.hero._y;
_root.shot._visible = true;
_root.ourHeroShotInAir = true;
}
else
{
if(_root.shot._y < 0)
{
_root.shot._visible = false;
_root.ourHeroShotInAir = false;
hero =0;
}
else
{
_root.shot._y = _root.shot._y - 50;
}
}
}
}
onClipEvent(mouseUp)
{
hero = 1;
}
onClipEvent(mouseUp)
{
if(!_root.ourheroShotInAir)
{
_root.shot._x = this. _x;
_root.shot._y = this. _y;
_root.shot._visible = true;
_root.ourHeroShotInAir = true;
}
}
onClipEvent(mouseUp)
{
if(_root.hpbad._width >=7)
{
x = 1;
}
}