ᴅᴀʀᴋ ɴɪɢʜᴛ 7 || A platformer || #games #all #trending #music #art #animations #stories
@Stage\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) = [11]>>> 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@SPIKEY\n\nwhen flag clicked\nforever\n    if <(level) = [1]> 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 (costume1 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 (costume3 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) = [10]> then\n                                        switch costume to (costume9 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) = [2]> 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@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@Button2\n\nwhen flag clicked\nforever\n    if <(level) = [3]> 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) = [5]> 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) = [9]> 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 (30) %\n        go to x: (-24) y: (140)\n        turn right (20) degrees\n        switch costume to (sharpy2 v)\n        go to [back v] layer\n        show\n    else\n        if <(level) = [5]> then\n            set size to (50) %\n            go to x: (131) y: (29)\n            turn right (15) degrees\n            switch costume to (sharpy2 v)\n            go to [back v] layer\n            show\n        else\n            if <(level) = [10]> then\n                set size to (65) %\n                go to x: (-21) y: (-110)\n                turn right (15) degrees\n                switch costume to (sharpy2 v)\n                go to [back v] layer\n                show\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) = [5]> then\n        show\n        set size to (80) %\n        go to x: (-34) y: (-106)\n        repeat until <(level) = [6]>\n            glide (0.8) secs to x: (-127) y: (-106)\n            wait (0.5) seconds\n            glide (0.8) secs to x: (-34) y: (-106)\n            wait (0.5) seconds\n        end\n    else\n        if <(level) = [?]> then\n            show\n            go to x: (20) y: (-87)\n            repeat until <(level) = [10]>\n                glide (0.8) secs to x: (-115) y: (-87)\n                wait (0.5) seconds\n                glide (0.8) secs to x: (20) y: (-87)\n                wait (0.5) seconds\n            end\n        else\n            hide\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nif <(level) = [10]> then\n    show\n    go to x: (133) y: (-62)\n    repeat until <(level) = [6]>\n        glide (0.5) secs to x: (205) y: (-62)\n        wait (0.5) seconds\n        glide (0.5) secs to x: (133) y: (-62)\n        wait (0.5) seconds\n    end\nend\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) = [3]> then\n    show\n    set size to (70) %\n    go to [front v] layer\n    go to x: (144) y: (146)\n    switch costume to (off v)\nelse\n    if <(level) = [5]> 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) = [9]> 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) = [5]> then\n        show\n        glide (1.5) secs to x: (6) 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: (188) y: (-76)\n    show\nelse\n    if <(level) = [5]> then\n        go to x: (6) y: (138)\n        show\n    else\n        if <(level) = [9]> then\n            go to x: (-65) y: (135)\n            show\n        else\n            hide\n        end\n    end\nend\n\n@Tranpoline\n\nwhen flag clicked\nforever\n    if <(level) = [2]> then\n        show\n        go to x: (-80) y: (-98)\n        go to [back v] layer\n    else\n        if <(level) = [3]> then\n            show\n            go to x: (-189) y: (19)\n            go to [back v] layer\n        else\n            if <(level) = [4]> then\n                go to x: (-187) y: (-108)\n                go to [back v] layer\n                show\n            else\n                if <(level) = [9]> then\n                    go to x: (104) y: (-97)\n                    go to [back v] layer\n                    show\n                else\n                    hide\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) = [?]> then\n        show\n        set size to (100) %\n        go to x: (-100) y: (-85)\n    else\n        if <(level) = [4]> then\n            show\n            set size to (100) %\n            go to x: (-169) y: (31)\n        else\n            if <(level) = [5]> then\n                show\n                set size to (80) %\n                go to x: (136) y: (-100)\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 (100) %\n        go to x: (3) y: (77)\n    else\n        if <(level) = [5]> then\n            show\n            go to x: (189) y: (141)\n            set size to (153) %\n        else\n            if <(level) = [10]> then\n                show\n                go to x: (108) y: (-90)\n                set size to (90) %\n            else\n                hide\n            end\n        end\n    end\nend\n\n@Mini \n\nwhen flag clicked\nforever\n    if <(level) = [3]> then\n        show\n        go to x: (18) y: (-72)\n    else\n        if <(level) = [5]> then\n            show\n            go to x: (100) y: (143)\n        else\n            if <(level) = [9]> then\n                show\n                go to x: (-10) y: (150)\n            else\n                if <(level) = [10]> 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) = [4]> then\n        show\n        go to x: (-4) y: (92)\n    else\n        if <(level) = [?]> then\n            show\n            go to x: (65) y: (148)\n        else\n            hide\n        end\n    end\nend\n\n@Move left2\n\nwhen flag clicked\nforever\n    if <(level) = [9]> then\n        show\n        go to x: (67) y: (153)\n    else\n        hide\n    end\nend\n\n@Tranpoline2\n\nwhen flag clicked\nforever\n    if <(level) = [4]> then\n        show\n        go to x: (-34) y: (-111)\n        go to [back v] layer\n    else\n        hide\n    end\nend\n\nif <(level) = [3]> then\n    show\n    go to x: (-189) y: (19)\n    go to [back v] layer\nelse\n    if <(level) = [4]> then\n        go to x: (-187) y: (-108)\n        go to [back v] layer\n        show\n    else\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 right3\n\nwhen flag clicked\nforever\n    if <(level) = [4]> then\n        show\n        set size to (100) %\n        go to x: (146) y: (11)\n    else\n        if <(level) = [10]> then\n            show\n            set size to (90) %\n            go to x: (-156) y: (-90)\n        else\n            hide\n        end\n    end\nend\n\n@level2\n\nwhen I receive [next level v]\nif <(level) = [6]> 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\nwhen I receive [tip open v]\nbroadcast (Tip closed v)\nset [brightness v] effect to (50)\nwait (5) seconds\nclear graphic effects\n\n@TIP\n\nwhen I receive [next level v]\nif <(level) = [6]> then\n    show\n    set [brightness v] effect to (0)\n    switch costume to (level6 v)\n    forever\n        if <touching (mouse-pointer v)?> then\n            set [brightness v] effect to (20)\n        else\n            set [brightness v] effect to (0)\n        end\n    end\nelse\n    hide\nend\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (Tip open v)\n\nwhen I receive [tip closed v]\nhide\n\n
#15 on #all #trending!!!                                 \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 8: https://scratch.mit.edu/projects/621854444/\n             @prodannau love, star and comment! \n                              \n                                 ~ᴅᴀʀᴋ ɴɪɢʜᴛ 7~\nWelcome to ᴅᴀʀᴋ ɴɪɢʜᴛ 7! \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 are possible.\n\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