MaidenMadness
Active Member
can it be that you have to hit a precise point to kill an enermy?manic said:action script
i'm using flash (F9)
can it be that you have to hit a precise point to kill an enermy?manic said:action script
i'm using flash (F9)
no te entire sprite is a movie clip so anywhere in that section that is non-transparentMaidenMadness said:can it be that you have to hit a precise point to kill an enermy?
how big is it?manic said:no change![]()
MM would it help if i send you the FLA. file
then i couldn't receive it cause its over my mailbox limit. :| . what if you threw out music and useless stuff and left only the most neccessary?manic said:oops 61.7mb
i'll seeMaidenMadness said:then i couldn't receive it cause its over my mailbox limit. :| . what if you threw out music and useless stuff and left only the most neccessary?
well then sorry i can't helpmanic said:61.6
i deleted music and background and it took off a whole 10 kb :banana: then i got a message saying my start-up disk is full so i'm just gonna swith HDs
:cry: can't you edit the code and send it backMaidenMadness said:well then sorry i can't help
i could if i had more time. i told you what i tough would solve the problem but i just breezed though the code.manic said::cry: can't you edit the code and send it back
manic said:i'll see
but for the others to prove i've actually done something #Link removed coz Manic was a cry baby :cry: #
wrong linkrockin_plumber said:All I get is
#Image removed coz Manic was a cry baby :cry: #
rockin could you take that off plzrockin_plumber said:All I get is
#Image removed coz Manic was a cry baby :cry: #
manic said:i see ewils name but not chicky's :roll:
like ed hunter?manic said:hes got long hair now![]()
maybe it could go through albums
that would be easy
powerslave: in a tomb and mummies attack
seventh son: the place with all the ice and water and those statue things come to life and attack
somewhere in time: in the streets of the future annd robo-eddies attack
number of the beast your in hell and demons attack
i tthink 5 klevels will do for now
sortaRockhardchick666 said:like ed hunter?
//Here we have a quite complex Collision Detection.
kreise = 5;
filmbreite = 600;
filmhoehe = 450;
///////////////////////////////////////////////////////////////////
//      Bewegen + Kollision
//      Funktion Version 2.0
///////////////////////////////////////////////////////////////////
Movieclip.prototype.bewegen = function (speed,verformung,radius,posX,posY) {
        if (ymov == "") {
                ymov = random(speed)+1;
                xmov = random(speed)+1;
                ysign = random(2)-1;
                if (ysign == 0) {
                        ysign = 1;
                }
                xsign = random(2)-1;
                if (xsign == 0) {
                        xsign = 1;
                }
                xmov = xmov*xsign;
                ymov = ymov*ysign;
        }
        if ((radius+speed)>=posX) {
                xmov = xmov*(-1);
                posX = radius+speed;
        }
        if ((radius+speed)>=posY) {
                ymov = ymov*(-1);
                posY = radius+speed;
        }
        if (posX>=((_root.filmbreite-radius)-speed)) {
                xmov = xmov*(-1);
                posX = (_root.filmbreite-radius)-speed;
        }
        if (posY>=((_root.filmhoehe-radius)-speed)) {
                ymov = ymov*(-1);
                posY = (_root.filmhoehe-radius)-speed;
        }
        for (n=1;n<=_root.kreise;n++) {
                if (n ne my_n) {
                        n_x = _root[n]._x;
                        n_y = _root[n]._y;
                        n_radius = _root[n]._width/2;
                        d_x = (posX+xmov)-n_x;
                        d_y = (posY+ymov)-n_y;
                        if (((d_x*d_x)+(d_y*d_y))<((radius+n_radius)*(radius+n_radius))) {
                                nx = _root[n].xmov;
                                ny = _root[n].ymov;
                                tempx = xmov;
                                xmov = nx;
                                _root[n].xmov = tempx;
                                tempy = ymov;
                                ymov = ny;
                                _root[n].ymov = tempy;
                                _root[n].treffer = my_n;
                        }
                }
        }
        _x = (posX+xmov);
        _y = (posY+ymov);
        _yscale = random(verformung)*1.1+60;
        _xscale = random(verformung)*1.1+60;
}
///////////////////////////////////////////////////////////////////
//  Klone Funktion Version 1.0
///////////////////////////////////////////////////////////////////
Movieclip.prototype.klone = function (anzahl) {
        for (i =1; i < anzahl; i++) {
                duplicateMovieClip (1, 1+i, -i);
                _root[1+i]._x = random(filmbreite)-_root[1+i]._width;
                _root[1+i]._y = random(filmhoehe)-_root[1+i]._height;
        }
}
klone(kreise);
//You need an mc with an instancename: 1
//And on the Clip you have to add this Script:
onClipEvent (load) {
        ymov = "";
}
onClipEvent (enterFrame) {
        bewegen(5,10,_width/2,_x,_y);
}