home *** CD-ROM | disk | FTP | other *** search
- function movebullet(mcp)
- {
- mcp._x += mcp.xstep;
- mcp._y += mcp.ystep;
- if(_level0.bg._width < mcp._x || mcp._x < 0 || mcp._y < 0)
- {
- mcp.removeMovieClip();
- }
- _level0.platformcheck(mcp);
- for(j in "_level0:itemSet")
- {
- if(mcp.hitTest(_level0._root.itemSet[j]))
- {
- if(_level0._root.itemSet[j].type != 7 && _level0._root.itemSet[j].type != 10)
- {
- _level0.itemSet[j].removeMovieClip();
- _level0.itemSet.splice(j,1);
- mcp.removeMovieClip();
- }
- else if(_level0._root.itemSet[j].type == 7 || _level0._root.itemSet[j].type == 10)
- {
- _level0.itemSet[j].death = true;
- _level0.itemSet.splice(j,1);
- mcp.removeMovieClip();
- trace("hit bad guy");
- }
- }
- }
- if(mcp.hitTest(_level0.boss.bossMC))
- {
- _level0.boss.bossHealth.scale._xscale -= _level0.weapon * 1.5 / _level0.level;
- _level0.boss.bossMC.play();
- mcp.removeMovieClip();
- }
- }
- spawncount = 0;
-