TROLL platformer

Instructions: arrow key to muve or wasd\nif your live is 0 you will start again\nthere is lot of traps '~'\n\nAND THIS IS POSSIBLE TO WIN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n

@Stage\n\nwhen flag clicked\nforever\n    play sound [titerman v] until done\nend\n\n@untitled\n\nwhen flag clicked\nset [live v] to [5]\nswitch costume to (costume1 v)\nshow\nset [yv v] to [0]\ngo to x: (-229) y: (0)\nset [xv v] to [0]\nset [stop v] to [0]\nswitch costume to (untitled v)\nset [ghost v] effect to (0)\nforever\n    if <(stop) = [0]> then\n        if <<(level) = [3]> or <(level) = [5]>> then\n            if <<<[-179] > (y position)> or <<<touching (角色7 v)?> or <<touching (角色8 v)?> or <touching (角色4 v)?>>> or <touching (32543363_60x60 v)?>>> or <touching (角色3 v)?>> then\n                set [yv v] to [0]\n                set [xv v] to [0]\n                change [live v] by (-1)\n                start sound [Oops v]\n                wait (1) seconds\n                set [ghost v] effect to (0)\n                set [stop 2 v] to [0]\n                switch costume to (untitled v)\n                set x to (-229)\n                set y to (0)\n                broadcast (wwww v)\n            end\n            if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n                change [xv v] by (1.2)\n            end\n            if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n                change [xv v] by (-1.2)\n            end\n            set [xv v] to ((xv) * (0.7))\n            change x by (xv)\n            if <<touching (角色1 v)?> or <<touching (角色2 v)?> or <touching (角色5 v)?>>> then\n                change y by (1)\n                if <<touching (角色1 v)?> or <<touching (角色2 v)?> or <touching (角色5 v)?>>> then\n                    change y by (1)\n                    if <<touching (角色1 v)?> or <<touching (角色2 v)?> or <touching (角色5 v)?>>> then\n                        change y by (1)\n                        if <<touching (角色1 v)?> or <<touching (角色2 v)?> or <touching (角色5 v)?>>> then\n                            change y by (1)\n                            if <<touching (角色1 v)?> or <<touching (角色2 v)?> or <touching (角色5 v)?>>> then\n                                change y by (1)\n                                if <<touching (角色1 v)?> or <<touching (角色2 v)?> or <touching (角色5 v)?>>> then\n                                    change x by ((xv) * (-1))\n                                    change y by (-5)\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n            change [yv v] by (-1)\n            change y by (yv)\n            if <<touching (角色1 v)?> or <<touching (角色2 v)?> or <touching (角色5 v)?>>> then\n                change y by ((yv) * (-1))\n                set [yv v] to [0]\n            end\n            change y by (-1)\n            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                if <<touching (角色1 v)?> or <<touching (角色2 v)?> or <touching (角色5 v)?>>> then\n                    set [yv v] to [12]\n                end\n            end\n            change y by (1)\n        else\n            if <<<[-179] > (y position)> or <<<touching (角色7 v)?> or <touching (角色4 v)?>> or <touching (32543363_60x60 v)?>>> or <touching (角色3 v)?>> then\n                set [yv v] to [0]\n                set [xv v] to [0]\n                change [live v] by (-1)\n                start sound [Oops v]\n                wait (1) seconds\n                set [ghost v] effect to (0)\n                set [stop 2 v] to [0]\n                switch costume to (untitled v)\n                set x to (-229)\n                set y to (0)\n                broadcast (wwww v)\n            end\n            if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n                change [xv v] by (1.2)\n            end\n            if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n                change [xv v] by (-1.2)\n            end\n            set [xv v] to ((xv) * (0.7))\n            change x by (xv)\n            if <<touching (角色1 v)?> or > then\n                change y by (1)\n                if <<touching (角色1 v)?> or > then\n                    change y by (1)\n                    if <<touching (角色1 v)?> or > then\n                        change y by (1)\n                        if <<touching (角色1 v)?> or > then\n                            change y by (1)\n                            if <<touching (角色1 v)?> or > then\n                                change y by (1)\n                                if <<touching (角色1 v)?> or > then\n                                    change x by ((xv) * (-1))\n                                    change y by (-5)\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n            change [yv v] by (-1)\n            change y by (yv)\n            if <<touching (角色1 v)?> or > then\n                change y by ((yv) * (-1))\n                set [yv v] to [0]\n            end\n            change y by (-1)\n            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                if <<touching (角色1 v)?> or > then\n                    set [yv v] to [12]\n                end\n            end\n            change y by (1)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(stop 2) = [0]> then\n        if <(stop) = [0]> then\n            if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n                if <(stop 2) = [0]> then\n                    switch costume to (untitled v)\n                end\n                wait (0.1) seconds\n                if <(stop 2) = [0]> then\n                    switch costume to (untitled2 v)\n                end\n                wait (0.1) seconds\n            end\n            if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n                if <(stop 2) = [0]> then\n                    switch costume to (untitled v)\n                end\n                wait (0.1) seconds\n                if <(stop 2) = [0]> then\n                    switch costume to (untitled2 v)\n                end\n                wait (0.1) seconds\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(live) = [0]> then\n        set [live v] to [5]\n        set [level v] to [0]\n        broadcast (end v)\n        start sound [Lose v]\n        wait (0.1) seconds\n        set [level v] to [1]\n        set [stop v] to [1]\n        wait until <key (space v) pressed?>\n        set [stop v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(stop) = [0]> then\n        if <(x position) > [230]> then\n            broadcast (Next v)\n            change x by (-1000)\n            change [level v] by (1)\n            change [live v] by (1)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(stop) = [0]> then\n        if <<(level) = [5]> or <(level) = [1]>> then\n            if <<(x position) > [-25]> and <[-120] < (y position)>> then\n                broadcast (go v)\n                stop [this script v]\n            end\n        end\n        if <<(level) = [5]> or <(level) = [2]>> then\n            if <(x position) > [90]> then\n                broadcast (go v)\n                stop [this script v]\n            end\n        end\n    end\nend\n\ngo to x: (100) y: (-134)\n\nwhen flag clicked\nset [stop 2 v] to [0]\nforever\n    if <<<[-179] > (y position)> or <<<<touching (角色7 v)?> or <touching (角色8 v)?>> or <touching (角色4 v)?>> or <touching (32543363_60x60 v)?>>> or <touching (角色3 v)?>> then\n        set [stop 2 v] to [1]\n        wait (0.1) seconds\n        switch costume to (造型1 v)\n        set [ghost v] effect to (50)\n        repeat (20)\n            change y by (3)\n        end\n    end\nend\n\nif <<(x position) > [-25]> and <[-120] < (y position)>> then\n    broadcast (go v)\nend\n\nwhen I receive [wwww v]\nforever\n    if <(stop) = [0]> then\n        if <<(level) = [5]> or <(level) = [1]>> then\n            if <<(x position) > [-25]> and <[-120] < (y position)>> then\n                broadcast (go v)\n                stop [this script v]\n            end\n        end\n        if <<(level) = [5]> or <(level) = [2]>> then\n            if <(x position) > [90]> then\n                broadcast (go v)\n                stop [this script v]\n            end\n        end\n    end\nend\n\nwhen I receive [next v]\nforever\n    if <(stop) = [0]> then\n        if <<(level) = [5]> or <(level) = [1]>> then\n            if <<(x position) > [-25]> and <[-120] < (y position)>> then\n                broadcast (go v)\n                stop [this script v]\n            end\n        end\n        if <(level) = [2]> then\n            if <(x position) > [90]> then\n                broadcast (go v)\n                stop [this script v]\n            end\n        end\n    end\nend\n\n@角色1\n\nwhen I receive [end v]\nswitch costume to (造型1 v)\n\nmove (10) steps\n\nwhen flag clicked\nswitch costume to (造型1 v)\ngo to x: (0) y: (0)\nforever\n    \nend\n\nwhen I receive [next v]\nnext costume\n\n@角色2\n\nwhen I receive [wwww v]\nif <(level) = [4]> then\n    go to x: (100) y: (-126)\n    create clone of (_myself_ v)\n    repeat (6)\n        move (-27) steps\n        create clone of (_myself_ v)\n    end\nend\nif <(level) = [5]> then\n    go to x: (30) y: (-127)\n    create clone of (_myself_ v)\n    change y by (30)\n    create clone of (_myself_ v)\n    change y by (30)\n    create clone of (_myself_ v)\nend\n\nwhen I receive [go it v]\ndelete this clone\n\nbroadcast (go it v)\n\nwhen I receive [next v]\ndelete this clone\n\nwait (0.1) seconds\n\nset [level v] to [4]\n\nwhen I start as a clone\nshow\nforever\n    if < or <(level) = [2]>> then\n        if <touching (untitled v)?> then\n            delete this clone\n        end\n    else\n        if <(level) = [4]> then\n            switch costume to (造型3 v)\n            if <[30] > (distance to [untitled v])> then\n                repeat (5)\n                    change y by (5)\n                end\n                repeat (5)\n                    change y by (3)\n                end\n                repeat (3)\n                    change y by (1)\n                end\n                wait (0.1) seconds\n                repeat (3)\n                    change y by (-1)\n                end\n                repeat (5)\n                    change y by (-3)\n                end\n                repeat (5)\n                    change y by (-5)\n                end\n                repeat until <touching (_edge_ v)?>\n                    change y by (-8)\n                end\n                change y by (-8)\n                delete this clone\n            end\n        else\n            switch costume to (造型2 v)\n        end\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\nhide\nswitch costume to (造型1 v)\nforever\n    if <(level) = [1]> then\n        go to x: (74) y: (-161)\n        create clone of (_myself_ v)\n        wait until <not <(level) = [1]>>\n    end\n    if <(level) = [2]> then\n        go to x: (-112) y: (-161)\n        create clone of (_myself_ v)\n        wait until <not <(level) = [2]>>\n    end\n    if <(level) = [3]> then\n        go to x: (-22) y: (-95)\n        create clone of (_myself_ v)\n        wait until <not <(level) = [3]>>\n    end\n    if <(level) = [4]> then\n        go to x: (100) y: (-126)\n        create clone of (_myself_ v)\n        repeat (6)\n            move (-27) steps\n            create clone of (_myself_ v)\n        end\n        wait until <not <(level) = [4]>>\n    end\n    if <(level) = [5]> then\n        go to x: (30) y: (-127)\n        create clone of (_myself_ v)\n        change y by (30)\n        create clone of (_myself_ v)\n        change y by (30)\n        create clone of (_myself_ v)\n        wait until <not <(level) = [5]>>\n    end\nend\n\nwhen I receive [end v]\ndelete this clone\n\n@角色3\n\nwait until <not <(level) = [1]>>\n\nwhen I receive [wwww v]\nif <(level) = [3]> then\n    broadcast (clone v)\n    delete this clone\nend\n\nwhen I receive [next v]\ndelete this clone\n\nbroadcast (wwww v)\n\nwhen I receive [clone v]\nwait (0.5) seconds\ncreate clone of (_myself_ v)\n\ngo to x: (67) y: (-126)\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I start as a clone\nshow\nforever\n    if <<(level) = [2]> or <(level) = [4]>> then\n        if <[35] > (distance to [untitled v])> then\n            set [ghost v] effect to (0)\n        else\n            set [ghost v] effect to (100)\n        end\n    end\n    if <(level) = [3]> then\n        set [ghost v] effect to (0)\n        point in direction (0)\n        go to x: (68) y: (-94)\n        wait (1) seconds\n        repeat (8)\n            switch costume to (造型2 v)\n            wait (0.1) seconds\n            switch costume to (造型3 v)\n            wait (0.1) seconds\n            switch costume to (造型4 v)\n            wait (0.1) seconds\n            switch costume to (造型3 v)\n            wait (0.1) seconds\n        end\n        switch costume to (造型1 v)\n        wait (0.5) seconds\n        set [x v] to (x position)\n        set [y v] to (y position)\n        broadcast (shut v)\n        glide (0.3) secs to x: (68) y: (-126)\n        repeat (8)\n            switch costume to (造型2 v)\n            wait (0.1) seconds\n            switch costume to (造型3 v)\n            wait (0.1) seconds\n            switch costume to (造型4 v)\n            wait (0.1) seconds\n            switch costume to (造型3 v)\n            wait (0.1) seconds\n        end\n        switch costume to (造型1 v)\n        wait (0.5) seconds\n        set [x v] to (x position)\n        set [y v] to (y position)\n        broadcast (shut v)\n        glide (0.3) secs to x: (68) y: (-94)\n        repeat (8)\n            switch costume to (造型2 v)\n            wait (0.1) seconds\n            switch costume to (造型3 v)\n            wait (0.1) seconds\n            switch costume to (造型4 v)\n            wait (0.1) seconds\n            switch costume to (造型3 v)\n            wait (0.1) seconds\n        end\n        switch costume to (造型1 v)\n        glide (0.3) secs to x: (68) y: (-126)\n        set [x v] to (x position)\n        set [y v] to (y position)\n        broadcast (shut v)\n        broadcast (go it v)\n        delete this clone\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\npoint in direction (90)\nhide\nswitch costume to (造型1 v)\nforever\n    if <(level) = [1]> then\n        go to x: (-130) y: (-139)\n        create clone of (_myself_ v)\n        wait until <not <(level) = [1]>>\n    end\n    if <(level) = [2]> then\n        go to x: (3) y: (-139)\n        create clone of (_myself_ v)\n        go to x: (-18) y: (-139)\n        create clone of (_myself_ v)\n        wait until <not <(level) = [2]>>\n    end\n    if <(level) = [3]> then\n        go to x: (67) y: (-94)\n        create clone of (_myself_ v)\n        wait until <not <(level) = [3]>>\n    end\n    if <(level) = [4]> then\n        go to x: (-33) y: (33)\n        create clone of (_myself_ v)\n        wait until <not <(level) = [4]>>\n    end\nend\n\nwhen I receive [end v]\ndelete this clone\n\n@角色4\n\nwhen I receive [go v]\nrepeat until <touching (_edge_ v)?>\n    change y by (15)\nend\nif <(level) = [5]> then\n    broadcast (boss v)\nend\ndelete this clone\n\nwhen I receive [wwww v]\nif <(level) = [1]> then\n    create clone of (_myself_ v)\n    delete this clone\nend\nif <(level) = [5]> then\n    create clone of (_myself_ v)\n    delete this clone\nend\n\nwait (1) seconds\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I start as a clone\nshow\nif <(level) = [1]> then\n    go to x: (-3) y: (-139)\nend\nif <(level) = [4]> then\n    go to x: (-177) y: (-139)\nend\nif <(level) = [5]> then\n    go to x: (-3) y: (-139)\nend\n\nwhen flag clicked\nset [level v] to [1]\nhide\nswitch costume to (造型1 v)\nforever\n    if <(level) = [1]> then\n        switch costume to (造型1 v)\n        go to x: (-3) y: (-139)\n        create clone of (_myself_ v)\n        wait until <not <(level) = [1]>>\n    end\n    if <(level) = [4]> then\n        switch costume to (造型2 v)\n        go to x: (-177) y: (-139)\n        create clone of (_myself_ v)\n        wait until <not <(level) = [4]>>\n    end\n    if <(level) = [5]> then\n        switch costume to (造型1 v)\n        go to x: (-3) y: (-139)\n        create clone of (_myself_ v)\n        wait until <not <(level) = [5]>>\n    end\nend\n\nwhen I receive [end v]\ndelete this clone\n\n@角色5\n\nif <(level) = [2]> then\n    go to x: (-112) y: (-161)\n    create clone of (_myself_ v)\n    wait until <not <(level) = [2]>>\nend\n\nwhen I receive [wwww v]\nset [ghost v] effect to (100)\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (100)\nforever\n    if <[30] > (distance to [untitled v])> then\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\nhide\nswitch costume to (造型1 v)\nforever\n    if <(level) = [1]> then\n        go to x: (50) y: (-100)\n        create clone of (_myself_ v)\n        wait until <not <(level) = [1]>>\n    end\nend\n\nwhen I receive [end v]\ndelete this clone\n\n@32543363_60x60\n\nwhen I receive [go v]\nif <[100] > (y position)> then\n    if <[88] < ([x position v] of [untitled v])> then\n        if <<(level) = [2]> or <(level) = [5]>> then\n            show\n            start sound [Horse v]\n            repeat (10)\n                change [color v] effect by (15)\n                start sound [Horse v]\n                change y by (13)\n            end\n            repeat until <touching (_edge_ v)?>\n                change [color v] effect by (15)\n                start sound [Horse v]\n                change y by (13)\n            end\n        end\n    end\nend\nhide\n\nwhen flag clicked\ngo to x: (130) y: (-202222)\nhide\n\nwhen I receive [next v]\nwait (0.1) seconds\ngo to x: (130) y: (-202222)\nhide\n\nwhen I receive [end v]\nwait (0.1) seconds\ngo to x: (130) y: (-202222)\nhide\n\nwhen I receive [wwww v]\nwait (0.1) seconds\ngo to x: (130) y: (-202222)\nhide\n\n@角色6\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (造型1 v)\ngo to x: (0) y: (0)\nset [ghost v] effect to (70)\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.1)\nswitch costume to (造型2 v)\n\nchange y by (10)\n\nwhen flag clicked\n\nwhen I receive [end v]\nset [ghost v] effect to (0)\nswitch costume to (造型3 v)\nforever\n    if <key (space v) pressed?> then\n        set [ghost v] effect to (70)\n        switch costume to (造型1 v)\n    end\nend\n\n@角色7\n\nwhen flag clicked\nset size to (180) %\nhide\n\nwhen I start as a clone\ngo to x: (x) y: (y)\npoint in direction (-90)\nshow\nstart sound [Pew v]\nrepeat (18)\n    change size by (-10)\nend\ndelete this clone\n\nwhen I receive [end v]\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [wwww v]\ndelete this clone\n\nwhen I receive [shut v]\ncreate clone of (_myself_ v)\n\n@角色8\n\nwhen I start as a clone\nset size to (100) %\nshow\nif <(level) = [5]> then\n    go to x: (-3) y: (-139)\nend\n\nwhen I start as a clone\nforever\n    change [color v] effect by (4)\nend\n\nwhen I receive [boss v]\nset size to (100) %\nif <(level) = [5]> then\n    wait (1.5) seconds\n    repeat until <touching (_edge_ v)?>\n        change x by (-5)\n    end\n    wait (1) seconds\n    wait until <(distance to [untitled v]) < [50]>\n    repeat until <touching (角色2 v)?>\n        change x by (5)\n    end\n    if <[3] > ([costume # v] of [untitled v])> then\n        if <(stop) = [0]> then\n            wait until <<[-100] < ([y position v] of [untitled v])> and <[-15] < ([x position v] of [untitled v])>>\n            repeat (10)\n                change y by (5)\n            end\n            repeat (10)\n                change y by (3)\n            end\n            repeat (5)\n                change y by (1)\n            end\n            if <(stop) = [0]> then\n                if <(stop) = [0]> then\n                    broadcast (go it v)\n                end\n                wait (0.1) seconds\n                repeat (5)\n                    change y by (-1)\n                end\n                repeat (10)\n                    change y by (-3)\n                end\n                repeat (10)\n                    change y by (-5)\n                end\n                repeat (100)\n                    change size by (3)\n                    change y by (0.2)\n                end\n                wait (0.5) seconds\n                glide (0.5) secs to (untitled v)\n            end\n        end\n    end\nend\n\nrepeat until <touching (角色2 v)?>\n\ngo to x: (7) y: (-139)\nset size to (100) %\n\nwhen I receive [wwww v]\nif <(level) = [5]> then\n    create clone of (_myself_ v)\n    delete this clone\nend\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I start as a clone\nshow\nif <(level) = [1]> then\n    go to x: (-3) y: (-139)\nend\n\nwhen flag clicked\nset [level v] to [1]\nhide\nswitch costume to (造型1 v)\nset size to (100) %\nforever\n    if <(level) = [5]> then\n        go to x: (-3) y: (-139)\n        create clone of (_myself_ v)\n        wait until <not <(level) = [5]>>\n    end\nend\n\nwhen I receive [end v]\ndelete this clone\n\nif <(stop) = [0]> then\n\n@角色9\n\nwhen flag clicked\nhide\ngo to x: (0) y: (20)\nwait (1) seconds\nforever\n    wait until <(level) = [3]>\n    show\n    wait (5) seconds\n    hide\n    wait until <not <(level) = [3]>>\nend\n\n