[FlasMx] Need Help

Hi, ive started up a bit of a project, but i have run into a problem i can not solve, and i don know where t start either.
Let me set the picture:

I have made a game where you control an avarter that goes around attacking enimies etc. The only trouble is, when the enimy goes to attack you, he disapears, and the attack is actual done by the movie clip i am useing to duplicae all the enimies, that shouldn’t be able to do any of the scripting.

What am i doing wrong? :-\

I would be very greatful if any could help me out, other wise i’ll have to ditch the project, and i know it got potential (as fare as my skills go any way :slight_smile: )

no code, no help…how could we know what’s wrong?

Sorry: I’ll try to send the code that i think may be muced up:
Heres the code on the enimy movie clip:

onClipEvent (load) {
if (this != _level0.enemy) {
speed = 5+random(10);
speed1 = _speed/(speed/5/speed);
fatigue = 0;
i = 0;
this._x = random(550);
this._y = random(400);
}
}
onClipEvent (enterFrame) {
if (this != _level0.enemy) {
endx = _root.player._x;
endy = _root.player._y;
if (fatigue>169 && (hyp<150 || hyp>-150)) {
this._x += (endx-_x)/100;
this._y += (endy-_y)/180;
wait = 1;
}
fatigue += 1;
if (fatigue>200) {
fatigue = 0;
wait = 0;
}
hyp = Math.sqrt(((_root.player._x-this._x)(_root.player._x-this._x))+((_root.player._y-this._y)(_root.player._y-this._y)));
if (fatigue>169 && wait<1 && (hyp<150 && hyp>-150)) {
_root.magicbolt.duplicateMovieClip(_root.magicbolt, magicbolt+i, i);
fatigue = 0;
i += 1;
_root.magicbolt._x = this._x;
_root.magicbolt._y = this._y;
}
}
}

Here the code i useingto duplicate the movie clip:

if (e<3) {
_root.enemy.duplicateMovieClip(_root.enemy, enemyt+e, e);
e+=1;
}
}

And here the code i useing on the magic bolt that i have been useing for an attack:

onClipEvent (load) {
if (this != _level0.magicbolt) {
this._x = _root.enemy._x;
this._y = _root.enemy._y;
}
}
onClipEvent (enterFrame) {
if (this != _level0.magicbolt) {
endX = _root.player._x;
endY = _root.player._y;
this._x += (endX-_x)/5;
this._y += (endY-_y)/5;
}
}

I just can’t see what going wrong, and why what is happeing, is happening.

Ihope yu can now help me, coz othere wise i stuck.

Thanks again.

Oh, and just in case it nothing wrong in any of that (which i definutly doubt) heres the codeig for the player that you control:

onClipEvent (load) {
_root.dupring._visible = false;
_root.player._x = 0;
_root.player._y = 0;
lvl = 1;
_root.stat.fatigue = 1;
startposx = random(551);
startposy = random(301);
endX = startposx;
endY = startposy;
_root.player._x = startposx;
_root.player._y = startposy;
}
onClipEvent (enterFrame) {
this._x = _root.player._x;
this._y = _root.player._y;
this._height = 115+(speed0.05)+(lvl0.075);
this._width = 300+(speed0.1)+(lvl0.15);
speed = _root.stat.speed/(_root.stat.speed/5/_root.stat.speed)
}
on (rollOver) {
Mouse.hide;
_root.crosshair._alpha = 100;
_root.ball1._alpha = 100;
_root.ball2._alpha = 100;
_root.ball3._alpha = 100;
_root.ball4._alpha = 100;
}
on (rollOut) {
Mouse.show;
_root.crosshair._alpha = 0;
_root.ball1._alpha = 0;
_root.ball2._alpha = 0;
_root.ball3._alpha = 0;
_root.ball4._alpha = 0;
}
on (press) {
if (_root.stat.fatigue>171) {
endX = _root._xmouse;
endY = _root._ymouse;
_root.stat.fatigue = 0;
this._visible = false;
_root.crosshair._alpha = 0;
_root.ball1._alpha = 0;
_root.ball2._alpha = 0;
_root.ball3._alpha = 0;
_root.ball4._alpha = 0;
}
}
onClipEvent (enterFrame) {
_root.player._x += (endX-_x)/15;
_root.player._y += (endY-_y)/15;
_root.fatbar._width = _root.stat.fatigue;
if (_root.stat.fatigue<172) {
_root.stat.fatigue += speed;
}
}

There probally lots of things that i left ou that even i know how to do, but it not worth me adding them unless i am able to get this to work, PLEASE HELP ME!!!

There a few bits of script i left out, e.g stats, and small efects, but if you think it could be anything to do with that, just ask and i will tell you wht i got.

Thanks once again.