ᴅᴀʀᴋ ɴɪɢʜᴛ 8 || A platformer || #games #all #trending #music #art #animations #stories 

Instructions: #7 on #all #trending !!!\n600+ Game Contest  https://scratch.mit.edu/projects/626392323/\n\nParts          \nAll parts: https://scratch.mit.edu/studios/30666881/\nPart 1: https://scratch.mit.edu/projects/588685230/\nPart 2: https://scratch.mit.edu/projects/594311391/\nPart 3: https://scratch.mit.edu/projects/604491171/\nPart 4: https://scratch.mit.edu/projects/609640532/\nPart 5: https://scratch.mit.edu/projects/615294016/   \nPart 6: https://scratch.mit.edu/projects/619802021/ \nPart 7: https://scratch.mit.edu/projects/619763005/                            \n\n                           ~ᴅᴀʀᴋ ɴɪɢʜᴛ 8~\nWelcome to ᴅᴀʀᴋ ɴɪɢʜᴛ 8! \nLove, Star and Remix!\nFollow me @hern1 for more amazing platformer!\n                               ~How to play~\nSpam the Green Flag!!! :D\nUse WAD , arrow keys or drag to move.\nAvoid red spikes, saw, lava and enemy!\nTrampoline makes you go up.\nGreen makes you fast.\nRed makes you back.\nPress the button to open the door.\nALL level is possible.\n\nPart 1: https://scratch.mit.edu/projects/588685230/\nPart 2: https://scratch.mit.edu/projects/594311391/\nPart 3: https://scratch.mit.edu/projects/604491171/\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nLove and star and follow me if you see this. :DDDD

@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (stars v)\nend\n\n@Blank\n\n@RED\n\nwhen flag clicked\nforever\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<((mouse y) + (-20)) > (y position)> and <mouse down?>>> and <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<((mouse x) + (15)) > (x position)> and <mouse down?>>>> then\n        switch costume to (---> v)\n    else\n        if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<((mouse y) + (-20)) > (y position)> and <mouse down?>>> and <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<((mouse x) - (15)) < (x position)> and <mouse down?>>>> then\n            switch costume to (<--- v)\n        else\n            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<((mouse y) + (-20)) > (y position)> and <mouse down?>>> then\n                switch costume to (upppp v)\n            else\n                if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<((mouse x) - (-20)) > (x position)> and <mouse down?>>> then\n                    switch costume to (---> v)\n                else\n                    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<((mouse x) + (-20)) < (x position)> and <mouse down?>>> then\n                        switch costume to (<--- v)\n                    else\n                        switch costume to (stand v)\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nrepeat (7)\n    switch costume to (costume1 v)\n    change size by (-4)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nset [level v] to [1]\ngo to [front v] layer\ngo [backward v] (3) layers\nshow\nset size to (45) %\nswitch costume to (stand v)\ngo to x: (-190) y: (-60)\nset drag mode [not draggable v]\npoint in direction (90)\nforever\n    create clone of (_myself_ v)\n    set rotation style [left-right v]\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        create clone of (_myself_ v)\n        change [x v] by (-1)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        create clone of (_myself_ v)\n        change [x v] by (1)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        create clone of (_myself_ v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        create clone of (_myself_ v)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <<<touching (level v)?> or <<touching (invisible v)?> or <touching (button v)?>>> or <touching (door v)?>> then\n        change y by (1)\n        if <<touching (door v)?> or <<touching (level v)?> or <<touching (invisible v)?> or <touching (button v)?>>>> then\n            change y by (1)\n            if <<touching (door v)?> or <<touching (level v)?> or <<touching (invisible v)?> or <touching (button v)?>>>> then\n                change y by (1)\n                if <<touching (door v)?> or <<touching (level v)?> or <<touching (invisible v)?> or <touching (button v)?>>>> then\n                    change y by (1)\n                    if <<touching (door v)?> or <<touching (level v)?> or <<touching (invisible v)?> or <touching (button v)?>>>> then\n                        change y by (1)\n                        if <<touching (door v)?> or <<touching (level v)?> or <<touching (invisible v)?> or <touching (button v)?>>>> then\n                            change x by ((X) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                                if <(X) > [0]> then\n                                    set [x v] to [-7]\n                                else\n                                    set [x v] to [7]\n                                end\n                                set [y v] to [14]\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <<<touching (level v)?> or <<touching (invisible v)?> or <touching (button v)?>>> or <touching (door v)?>> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            set [y v] to [13]\n            point in direction ((Y) * (0.5))\n        end\n    end\n    change y by (1)\n    change [y v] by (-1)\n    change y by (Y)\n    if <<<touching (level v)?> or <<touching (invisible v)?> or <touching (button v)?>>> or <touching (door v)?>> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    hide variable [x v]\n    if <<(x position) > [230]> and <not <(level) = [15]>>> then\n        broadcast (next level v)\n        change [level v] by (1)\n        set [y v] to [0]\n        set [x v] to [0]\n        go to x: (-190) y: (-60)\n    end\n    if <(y position) < [-170]> then\n        set [x v] to [0]\n        set [y v] to [0]\n        go to x: (-190) y: (-60)\n    end\nend\n\nwhen flag clicked\nforever\n    set [x v] to (x position)\n    set [y v] to (y position)\nend\n\ngo to x: (-190) y: (-24)\ngo to x: (-201) y: (14)\n\nwhen flag clicked\nforever\n    if <<touching (enemy v)?> or <<<touching (spikey v)?> or <touching (lava v)?>> or <touching (saw v)?>>> then\n        broadcast (Mati v)\n    end\nend\n\nwhen I receive [mati v]\nset size to (45) %\nhide\nwait (0) seconds\nshow\nset [x v] to [0]\nset [y v] to [0]\nset [x v] to [-210]\nset [y v] to [-60]\nset x to (-210)\nset y to (-60)\nstop [this script v]\n\nhide\n\nwhen flag clicked\nforever\n    if <<touching (tranpoline v)?> or <touching (tranpoline2 v)?>> then\n        set [y v] to [20]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (move left v)?> or <touching (move left2 v)?>> then\n        set [x v] to [-20]\n    end\n    if <<<touching (move right v)?> or <touching (move right2 v)?>> or <touching (move right3 v)?>> then\n        set [x v] to [20]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mini  v)?> then\n        set size to (20) %\n    end\nend\n\nset size to (45) %\n\nwhen flag clicked\nforever\n    if <(level) = [4]> then\n        set size to (45) %\n    end\nend\n\nwhen I receive [next level v]\nset size to (45) %\n\n@level\n\nwhen I receive [next level v]\nswitch costume to (join [Level] (level))\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (level1 v)\n\n@SPIKEY\n\nwhen flag clicked\nforever\n    if <(level) = [?]> then\n        show\n        switch costume to (costume2 v)\n        go to [back v] layer\n    else\n        if <(level) = [2]> then\n            switch costume to (costume2 v)\n            show\n            go to [back v] layer\n        else\n            if <(level) = [3]> then\n                switch costume to (costume5 v)\n                show\n                go to [back v] layer\n            else\n                if <(level) = [4]> then\n                    switch costume to (costume9 v)\n                    show\n                    go to [back v] layer\n                else\n                    if <(level) = [5]> then\n                        switch costume to (costume6 v)\n                        go to [back v] layer\n                    else\n                        if <(level) = [6]> then\n                            switch costume to (costume4 v)\n                            show\n                            go to [back v] layer\n                        else\n                            if <(level) = [7]> then\n                                switch costume to (costume7 v)\n                                show\n                                go to [back v] layer\n                            else\n                                if <(level) = [9]> then\n                                    switch costume to (costume8 v)\n                                    show\n                                    go to [back v] layer\n                                else\n                                    if <(level) = [13]> then\n                                        switch costume to (costume10 v)\n                                        show\n                                        go to [back v] layer\n                                    else\n                                        hide\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\n@Lava\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nif <(level) = [5]> then\n    switch costume to (costume2 v)\n    show\n    go to [back v] layer\n    forever\n        set y to ((3) * ([sin v] of ((timer) * (180)) ))\n    end\nelse\n    if <(level) = [7]> then\n        switch costume to (costume3 v)\n        show\n        go to [back v] layer\n        forever\n            set y to ((3) * ([sin v] of ((timer) * (180)) ))\n        end\n    else\n        if <(level) = [?]> then\n            switch costume to (costume2 v)\n            show\n            go to [back v] layer\n            forever\n                set y to ((3) * ([sin v] of ((timer) * (180)) ))\n            end\n        else\n            if <(level) = [8]> then\n                switch costume to (costume4 v)\n                show\n                go to [back v] layer\n                forever\n                    set y to ((3) * ([sin v] of ((timer) * (180)) ))\n                end\n            else\n                if <(level) = [10]> then\n                else\n                    hide\n                end\n            end\n        end\n    end\nend\n\nforever\nend\n\nhide\ngo to x: (0) y: (-200)\nwait (1) seconds\nswitch costume to (costume4 v)\nshow\ngo to [back v] layer\nset y to ((3) * ([sin v] of ((timer) * (180)) ))\n\nglide (3) secs to x: (0) y: (170)\nwait (1) seconds\nglide (3) secs to x: (0) y: (-200)\n\n@Button2\n\nwhen flag clicked\nforever\n    if <(level) = [6]> then\n        show\n        go to (button v)\n        set [ghost v] effect to (100)\n        if <touching (red v)?> then\n            broadcast (On  \(⊙o⊙\)？ v)\n            stop [this script v]\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [- ]> then\n        show\n        go to (button v)\n        set [ghost v] effect to (100)\n        if <touching (red v)?> then\n            broadcast (On  \(⊙o⊙\)？ v)\n            stop [this script v]\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [~]> then\n        show\n        go to (button v)\n        set [ghost v] effect to (100)\n        if <touching (red v)?> then\n            broadcast (On  \(⊙o⊙\)？ v)\n            stop [this script v]\n        end\n    else\n        hide\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    play sound [A_Bit_Puzzled v] until done\nend\n\nshow\ngo to [front v] layer\n\n@Saw\n\nwhen flag clicked\nforever\n    if <(level) = [3]> then\n        set size to (40) %\n        go to x: (35) y: (150)\n        turn right (20) degrees\n        switch costume to (sharpy2 v)\n        go to [back v] layer\n        show\n    else\n        if <(level) = [7]> then\n            set size to (130) %\n            go to x: (29) y: (-70)\n            turn right (6) degrees\n            switch costume to (sharpy3 v)\n            go to [back v] layer\n            show\n        else\n            if <(level) = [9]> then\n                show\n                set size to (100) %\n                go to x: (-21) y: (-110)\n                turn right (15) degrees\n                switch costume to (sharpy2 v)\n                go [backward v] (1) layers\n            else\n                hide\n            end\n        end\n    end\nend\n\n@Enemy\n\nwhen I receive [next level v]\nforever\n    if <(level) = [3]> then\n        show\n        go to [front v] layer\n        set size to (110) %\n        go to x: (-35) y: (-75)\n        repeat until <(level) = [4]>\n            glide (0.8) secs to x: (65) y: (-75)\n            wait (0.5) seconds\n            glide (0.8) secs to x: (-35) y: (-75)\n            wait (0.5) seconds\n        end\n    else\n        if <(level) = [10]> then\n            show\n            go to x: (205) y: (-75)\n            repeat until <(level) = [11]>\n                glide (0.1) secs to x: (53) y: (-75)\n                wait (0.1) seconds\n                glide (0.1) secs to x: (205) y: (-75)\n                wait (0.1) seconds\n            end\n        else\n            hide\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\n@Text\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\ngo to [front v] layer\nshow\nswitch costume to (costume1 v)\n\nset [ghost v] effect to (0)\n\n@Button\n\nwhen flag clicked\nhide\n\nwhen I receive [on  \(⊙o⊙\)？ v]\nswitch costume to (on v)\n\nwhen I receive [next level v]\nif <(level) = [6]> then\n    show\n    set size to (100) %\n    go to [front v] layer\n    go to x: (-201) y: (110)\n    switch costume to (off v)\nelse\n    if <(level) = [,]> then\n        show\n        set size to (100) %\n        go to [back v] layer\n        go to x: (-196) y: (53)\n        switch costume to (off v)\n    else\n        if <(level) = [`]> then\n            show\n            set size to (100) %\n            go to [back v] layer\n            go to x: (-201) y: (127)\n            switch costume to (off v)\n        else\n            hide\n        end\n    end\nend\n\n@Door\n\nwhen I receive [on  \(⊙o⊙\)？ v]\nif <(level) = [3]> then\n    show\n    glide (1.5) secs to x: (188) y: (180)\n    hide\nelse\n    if <(level) = [6]> then\n        show\n        glide (1.5) secs to x: (224) y: (180)\n        hide\n    else\n        show\n        glide (1.5) secs to x: (-65) y: (180)\n        hide\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nif <(level) = [3]> then\n    go to x: (-96) y: (-1)\n    switch costume to (costume2 v)\n    show\nelse\n    if <(level) = [6]> then\n        switch costume to (costume1 v)\n        go to x: (224) y: (-62)\n        show\n    else\n        if <(level) = [:\)]> then\n            go to x: (-65) y: (135)\n            switch costume to (costume1 v)\n            show\n        else\n            hide\n        end\n    end\nend\n\n@Tranpoline\n\nwhen flag clicked\nforever\n    if <(level) = [9]> then\n        show\n        go to x: (-168) y: (-101)\n        go to [back v] layer\n    else\n        if <(level) = [3]> then\n            show\n            go to x: (-182) y: (-93)\n            go to [back v] layer\n        else\n            if <(level) = [5]> then\n                go to x: (-133) y: (-93)\n                go to [back v] layer\n                show\n            else\n                if <(level) = [6]> then\n                    go to x: (174) y: (-83)\n                    go to [back v] layer\n                    show\n                else\n                    if <(level) = [13]> then\n                        go to x: (37) y: (13)\n                        go to [back v] layer\n                        show\n                    else\n                        hide\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    switch costume to (costume1 v)\n    if <touching (red v)?> then\n        repeat (6)\n            next costume\n        end\n        repeat (6)\n            switch costume to ((costume [number v]) - (1))\n        end\n    end\nend\n\n@Move right\n\nwhen flag clicked\nforever\n    if <(level) = [3]> then\n        show\n        set size to (100) %\n        go to x: (135) y: (-81)\n    else\n        if <(level) = [6]> then\n            show\n            set size to (100) %\n            go to x: (-89) y: (-73)\n        else\n            if <(level) = [11]> then\n                show\n                set size to (100) %\n                go to x: (-114) y: (-64)\n            else\n                if <(level) = [?]> then\n                    show\n                    set size to (150) %\n                    go to x: (-29) y: (30)\n                else\n                    hide\n                end\n            end\n        end\n    end\nend\n\n@Move left\n\nwhen flag clicked\nforever\n    if <(level) = [3]> then\n        show\n        set size to (60) %\n        go to x: (180) y: (135)\n    else\n        if <(level) = [12]> then\n            show\n            go to x: (-102) y: (-61)\n            set size to (100) %\n        else\n            hide\n        end\n    end\nend\n\n@Mini \n\nwhen flag clicked\nforever\n    if <(level) = [3]> then\n        show\n        go to x: (-114) y: (150)\n    else\n        if <(level) = [6]> then\n            show\n            go to x: (-28) y: (-10)\n        else\n            if <(level) = [9]> then\n                show\n                go to x: (-10) y: (150)\n            else\n                if <(level) = [FOLLOW]> then\n                    show\n                    go to x: (158) y: (83)\n                else\n                    hide\n                end\n            end\n        end\n    end\nend\n\n@Move right2\n\nwhen flag clicked\nforever\n    if <(level) = [-=]> then\n        show\n        go to x: (-4) y: (92)\n    else\n        if <(level) = [11]> then\n            show\n            go to x: (18) y: (-60)\n        else\n            hide\n        end\n    end\nend\n\n@Move right3\n\nwhen flag clicked\nforever\n    if <(level) = [11]> then\n        show\n        set size to (100) %\n        go to x: (148) y: (-58)\n    else\n        if <(level) = [l;']> then\n            show\n            set size to (90) %\n            go to x: (137) y: (-57)\n        else\n            hide\n        end\n    end\nend\n\n@level2\n\nwhen I receive [next level v]\nif <(level) = [4]> then\n    show\n    set [brightness v] effect to (5)\n    switch costume to (level6 v)\nelse\n    hide\nend\n\nwhen flag clicked\nhide\n\n@Crazy\n\nwhen flag clicked\nhide\nforever\n    if <(level) = [9]> then\n        go to [back v] layer\n        create clone of (_myself_ v)\n    else\n        hide\n    end\nend\n\ngo [backward v] (1000000000000000000000) layers\n\nwhen I start as a clone\nshow\nset x to (240)\npoint in direction (90)\nset rotation style [left-right v]\nset y to (pick random (-180) to (180))\nset [ghost v] effect to (pick random (0) to (20))\nswitch costume to (pick random (1) to (6))\nset size to (pick random (90) to (100)) %\nrepeat (12)\n    change x by (-40)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Move left2\n\nwhen flag clicked\nforever\n    if <(level) = [12]> then\n        show\n        set size to (100) %\n        go to x: (38) y: (-58)\n    else\n        hide\n    end\nend\n\n@Move left3\n\nwhen flag clicked\nforever\n    if <(level) = [12]> then\n        show\n        set size to (100) %\n        go to x: (192) y: (-54)\n    else\n        hide\n    end\nend\n\n