Night || A Platformer || #All #Games
@Stage\n\nwhen I receive [start game v]\nforever\n    play sound [Music v] until done\nend\n\n@Thumbail\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Intro\n\nwhen flag clicked\nIntro\n\ndefine Intro\nset [seq v] to [0]\nset [ghost v] effect to (100)\npoint in direction (90)\nset size to (100) %\nrepeat (3)\n    switch costume to (b1 v)\n    go to x: (-220) y: (0)\n    repeat (6)\n        create clone of (_myself_ v)\n        change x by (80)\n    end\n    wait (0.2) seconds\n    switch costume to (b2 v)\n    go to x: (0) y: (150)\n    repeat (6)\n        create clone of (_myself_ v)\n        change y by (-60)\n    end\n    wait (0.2) seconds\nend\nwait (0.2) seconds\nset [i1 v] to [0]\ngo to x: (0) y: (0)\nswitch costume to (name v)\nset [brightness v] effect to (100)\ncreate clone of (_myself_ v)\nwait (1.5) seconds\nswitch costume to (logo v)\ncreate clone of (_myself_ v)\nswitch costume to (flash v)\ncreate clone of (_myself_ v)\nwait (1) seconds\nswitch costume to (white bar v)\ngo to x: (0) y: (-150)\nrepeat (4)\n    create clone of (_myself_ v)\n    change y by (100)\nend\nwait (0.5) seconds\ngo to x: (0) y: (0)\nset [i1 v] to [1]\nswitch costume to (name v)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    set [ghost v] effect to (0)\n    set y to (400)\n    repeat (18)\n        change y by ((y position) / (-3))\n    end\nelse\n    if <(costume [number v]) = [2]> then\n        set [ghost v] effect to (0)\n        set x to (400)\n        repeat (18)\n            change x by ((x position) / (-3))\n        end\n    else\n        if <(costume [number v]) = [3]> then\n            if <(i1) = [0]> then\n                set size to (0) %\n                repeat (30)\n                    set [i1 v] to (((i1) * (0.8)) + (((100) - (size)) / (3)))\n                    change size by (i1)\n                    set y to (i1)\n                    set x to ((i1) / (3))\n                    point in direction ((90) + ((i1) / (7)))\n                    change [ghost v] effect by (-5)\n                end\n                set [i1 v] to [0]\n                repeat (30)\n                    change [i1 v] by (3)\n                    change x by ((i1) * (-0.6))\n                    change y by ((i1) / (2))\n                    turn left ((i1) / (5)) degrees\n                    change [ghost v] effect by ((i1) / (1.5))\n                end\n            else\n                clear graphic effects\n                repeat (20)\n                    change size by (-2)\n                    change [ghost v] effect by (5)\n                end\n            end\n        else\n            if <(costume [number v]) = [4]> then\n                Particles\n                go to x: (0) y: (-300)\n                set size to (100) %\n                switch costume to (logo v)\n                clear graphic effects\n                set [i1 v] to [0]\n                set [seq v] to [1]\n                repeat (26)\n                    point in direction ((90) + (([tan v] of (i1) ) * (10)))\n                    change y by ((y position) / (-4))\n                    change [i1 v] by (7)\n                end\n                repeat (10)\n                    change y by ((y position) + (5))\n                end\n            else\n                if <<(costume [number v]) = [5]> or <(costume [number v]) = [6]>> then\n                    set [ghost v] effect to (0)\n                    repeat (20)\n                        change x by (i1)\n                        change y by (i2)\n                        change [ghost v] effect by (5)\n                        change [i2 v] by (-2)\n                    end\n                    delete this clone\n                else\n                    if <(costume [number v]) = [7]> then\n                        set size to (0) %\n                        repeat (20)\n                            change size by (((100) - (size)) / (4))\n                            change [ghost v] effect by (-7)\n                        end\n                    else\n                        if <(costume [number v]) = [8]> then\n                            clear graphic effects\n                            repeat (20)\n                                change [ghost v] effect by (5)\n                            end\n                            delete this clone\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Particles\n\nwhen flag clicked\nplay sound [Intro music  v] until done\nbroadcast (Start game v)\nstop [this script v]\n\n@Player\n\nwhen flag clicked\nhide\nswitch costume to (normal v)\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [start game v]\nshow\ngo to [front v] layer\nset size to (100) %\ngo to x: (-199) y: (-45)\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x v] by (1.5)\n        switch costume to (right v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x v] by (-1.5)\n        switch costume to (left  v)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        switch costume to (up right v)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        switch costume to (up left v)\n    end\n    if <not <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>>>>>> then\n        switch costume to (normal v)\n    end\n    change x by (X)\n    if <touching (ground v)?> then\n        change x by ((X) * (-1))\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            if <(X) > [0]> then\n                set [x v] to [-15]\n                set [y v] to [10]\n            else\n                set [x v] to [15]\n                set [y v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    else\n        set [x v] to ((X) * (0.8))\n    end\n    change y by (Y)\n    if <touching (ground v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            switch costume to (up v)\n            if <(Jump) = [Yes]> then\n                set [y v] to [12]\n                set [jump v] to [No]\n            end\n        end\n    else\n        change [y v] by (-1)\n        set [jump v] to [Yes]\n    end\n    if <(x position) > [240]> then\n        show\n        switch costume to (normal v)\n        set size to (100) %\n        point in direction (90)\n        go to x: (-199) y: (-45)\n        set [x v] to [0]\n        set [y v] to [0]\n        broadcast (Next Level v)\n    end\n    if <<touching (spikes v)?> or <<touching (saw v)?> or <touching (lava v)?>>> then\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        set size to (100) %\n        point in direction (90)\n        go to x: (-199) y: (-45)\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I start as a clone\nswitch costume to (clone v)\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@Sky\n\nwhen flag clicked\nhide\ngo to [front v] layer\n\nwhen I receive [start game v]\nshow\ngo to x: (36) y: (24)\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@Ground\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [start game v]\nshow\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Moon\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nshow\ngo to [front v] layer\ngo to x: (36) y: (28)\nset size to (100) %\nset [moon size v] to [100]\nforever\n    change size by ([cos v] of (Moon Size) )\n    change [moon size v] by (5)\nend\n\n@Clouds\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [start game v]\nhide\ngo to [front v] layer\nforever\n    set [random v] to (pick random (1) to (2))\n    create clone of (_myself_ v)\n    wait (pick random (3) to (5)) seconds\nend\n\nwhen I start as a clone\nset size to (pick random (70) to (80)) %\nshow\nset [ghost v] effect to (15)\nif <(random) = [1]> then\n    go to x: (300) y: (pick random (150) to (100))\n    repeat until <(x position) < [-250]>\n        change x by (-1)\n    end\n    delete this clone\nend\nif <(random) = [2]> then\n    go to x: (-300) y: (pick random (150) to (100))\n    repeat until <[250] < (x position)>\n        change x by (1)\n    end\n    delete this clone\nend\n\n@Spikes\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [start game v]\nshow\ngo to [front v] layer\n\nwhen I receive [next level v]\nnext costume\n\n@Saw\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [start game v]\nshow\ngo to [front v] layer\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    change [line v] by (0.9)\nend\n\nwhen flag clicked\nforever\n    point in direction ((90) + (([sin v] of ((line) * (2)) ) * (300)))\n    if <(costume [number v]) = [3]> then\n        go to x: (-74) y: (-100)\n    end\n    if <(costume [number v]) = [6]> then\n        go to x: (32) y: (-103)\n    end\n    if <(costume [number v]) = [7]> then\n        go to x: (51) y: (-22)\n    end\n    if <(costume [number v]) = [8]> then\n        go to x: (197) y: (-102)\n    end\nend\n\n@Lava\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [start game v]\nshow\ngo to [front v] layer\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\ngo to x: (36) y: (28)\nforever\n    glide (1) secs to x: (36) y: (33)\n    glide (1) secs to x: (36) y: (38)\nend\n\n
                               ★★★★★ Night ★★★★★\n\n                                 ★★★How to play★★★\n- Arrow keys and WAD to move !\n- Don't touch spikes, saw, ...\n\n                                            ★Goals★\n- Up to #10 on #All\n- Up to #15 on Games\n- 20 000+ views\n- 500+ Loves And Favs\n\n           ★★★★★★★★★★Credits★★★★★★★★★★★★\n- Thanks to @YRTIM for the intro !\n- Thanks to @TrentonTNT for the cloud art \n- The other codes by me ! \n\n                                   ❤️ + ⭐ = Thanks\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nComment " Pizza "