Night | a platformer  #all #games #art #music
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop v)\nforever\n    play sound [Force v] until done\nend\n\n@Player\n\nwhen I start as a clone\nswitch costume to (costume3 v)\nset [ghost v] effect to (10)\nrepeat (10)\n    change size by (-1)\n    set [color v] effect to (Color)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\ndefine Start\nset [jump v] to [14]\nset [speed v] to [1]\ngo to x: (-220) y: (37)\nshow\nforever\n    if on edge, bounce\n    go to [back v] layer\n    set [player: y v] to [0]\n    set [player: x v] to [0]\n    forever\n        change [player: y v] by (-1)\n        set [player: x v] to ((Player: x) * (0.9))\n        if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<(x position) > (mouse x)> and <mouse down?>>>> then\n            switch costume to (plain2 v)\n            change [player: x v] by (join [-] (speed))\n        end\n        if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>>> then\n            switch costume to (plain v)\n            change [player: x v] by ([abs v] of (speed) )\n        end\n        change x by (Player: x)\n        if <<touching (level v)?> or <touching (moving platform v)?>> then\n            change y by (1)\n        end\n        if <<touching (level v)?> or <touching (moving platform v)?>> then\n            change y by (1)\n        end\n        if <<touching (level v)?> or <touching (moving platform v)?>> then\n            change y by (1)\n        end\n        if <<touching (level v)?> or <touching (moving platform v)?>> then\n            change y by (1)\n        end\n        if <<touching (level v)?> or <touching (moving platform v)?>> then\n            change y by (-4)\n            change x by ((Player: x) * (-1))\n            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>>> then\n                set [player: y v] to [10]\n                if <([abs v] of (Player: x) ) = (Player: x)> then\n                    set [player: x v] to [-4]\n                else\n                    set [player: x v] to [4]\n                end\n            else\n                set [player: x v] to [0]\n            end\n        end\n        change y by (Player: y)\n        if <<touching (level v)?> or <touching (moving platform v)?>> then\n            change y by ((Player: y) - ((Player: y) * (2)))\n            set [player: y v] to [0]\n        end\n        change y by (-1)\n        if <<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>>> and <<<touching (level v)?> or <touching (players v)?>> or <touching (moving platform v)?>>> then\n            set [player: y v] to ((jump) * (1))\n        end\n        change y by (1)\n        if <(x position) > [230]> then\n            broadcast (New Level v)\n            repeat (5)\n                change [ghost v] effect by (20)\n            end\n            go to x: (-220) y: (-37)\n            wait until <not <(x position) > [230]>>\n        end\n        if <<<<touching (spikes v)?> or <(y position) < [-170]>> or <touching (saws v)?>> or <touching (saws2 v)?>> then\n            go to x: (-220) y: (-37)\n        end\n        change y by (-1)\n        if <<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>>> and > then\n            set [player: y v] to [14]\n        end\n        change y by (1)\n        if <touching (old trampolines v)?> then\n            set [player: y v] to [23]\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [clear clones v]\nshow\nStart\n\nwhen I receive [come on!!! v]\ngo to x: (-220) y: (37)\n\nwhen I receive [start outro v]\nhide\n\n@Level\n\nwhen I receive [new level v]\nnext costume\nnext backdrop\nchange [level v] by (1)\n\nwhen flag clicked\nswitch backdrop to (backdrop7 v)\nswitch costume to (costume7 v)\n\nwhen I receive [clear clones v]\nswitch backdrop to (backdrop1 v)\nswitch costume to (costume1 v)\n\n@Intro2\n\nwhen flag clicked\nwait (0) seconds\nplay sound [Jim Yosef - Link \[NCS Release\] v] until done\n\nwhen flag clicked\nset [clone size v] to [0]\nset [clone x v] to [0]\nset [clone y v] to [0]\nset [clone id v] to [0]\nhide\nCreate Clones [3] [30]\nCreate Particles [18]\n\ndefine Create Clones (amount) (particle amount1)\nrepeat (amount)\n    change [clone id v] by (1)\n    create clone of (_myself_ v)\nend\nrepeat (1)\n    repeat (particle amount1)\n        set [clone id v] to [20]\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\ngo to x: (0) y: (0)\npoint in direction (90)\nset size to (100) %\nif <(Clone ID) = [1]> then\n    wait (0) seconds\n    set size to (10) %\n    switch costume to (costume4 v)\n    show\n    repeat (20)\n        change size by (((100) - (size)) / (6))\n    end\n    go to [front v] layer\n    repeat (140)\n        switch costume to (costume4 v)\n        change size by (((420) - (size)) / (4))\n        switch costume to (costume5 v)\n    end\n    set [clone size v] to [0]\n    repeat (50)\n        switch costume to (costume4 v)\n        change [clone size v] by (-1)\n        change size by (Clone Size)\n        change [ghost v] effect by ([abs v] of ((Clone Size) / (2)) )\n        switch costume to (costume5 v)\n    end\n    delete this clone\nend\nif <(Clone ID) = [21]> then\n    go to x: (pick random (-200) to (200)) y: (pick random (-200) to (200))\n    set size to (pick random (80) to (100)) %\n    switch costume to (costume3 v)\n    set [ghost v] effect to (20)\n    go to [back v] layer\n    show\n    repeat (4)\n        change [ghost v] effect by (-5)\n        change x by (((0) - (x position)) / (4))\n        change y by (((0) - (y position)) / (4))\n    end\n    repeat (20)\n        change x by (((0) - (x position)) / (4))\n        change y by (((0) - (y position)) / (4))\n    end\n    delete this clone\nend\nif <(Clone ID) = [2]> then\n    wait (1.3) seconds\n    switch costume to (costume1 v)\n    set size to (10) %\n    point in direction (180)\n    go to [front v] layer\n    show\n    repeat (70)\n        set [clone size v] to (((Clone Size) * (0.7)) + (((140) - (size)) / (4)))\n        turn right (((90) - (direction)) / (3)) degrees\n        change size by (Clone Size)\n    end\n    repeat (50)\n        change y by (((-100) - (y position)) / (4))\n    end\n    repeat (25)\n        change size by (-2)\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\nif <(Clone ID) = [3]> then\n    wait (3.6) seconds\n    switch costume to (costume2 v)\n    go to x: (0) y: (50)\n    set size to (400) %\n    go to [front v] layer\n    show\n    repeat (50)\n        set [clone size v] to (((Clone Size) * (0.7)) + (((100) - (size)) / (4)))\n        change size by (Clone Size)\n    end\n    repeat (25)\n        change size by (-2)\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\nif <(Clone ID) = [20]> then\n    wait (1.31) seconds\n    go to x: (pick random (-10) to (10)) y: (0)\n    go to [front v] layer\n    go [backward v] (1) layers\n    switch costume to (costume6 v)\n    set [clone x v] to (pick random (-10) to (10))\n    set [clone y v] to (pick random (10) to (20))\n    set [brightness v] effect to (pick random (0) to (-5))\n    set size to (pick random (80) to (120)) %\n    show\n    repeat until <touching (_edge_ v)?>\n        change [clone y v] by (-1)\n        change y by (Clone Y)\n        change x by (Clone X)\n        set [clone y v] to ((Clone Y) * (0.96))\n    end\n    broadcast (Clear Clones v)\n    delete this clone\nend\n\ndefine Create Particles (amount1)\nrepeat (amount1)\n    set [clone id v] to [21]\n    create clone of (_myself_ v)\nend\n\n@Moving Platform\n\nwhen I receive [new level v]\nif <not <(costume [number v]) = [13]>> then\n    next costume\nend\n\nwhen flag clicked\nswitch costume to (costume7 v)\nforever\n    glide (0.8) secs to x: (-76) y: (60)\n    wait (0.7) seconds\n    glide (0.8) secs to x: (156) y: (60)\nend\n\nwhen I receive [clear clones v]\nswitch costume to (costume2 v)\n\n@Light\n\nwhen flag clicked\nforever\n    wait (0.09) seconds\n    repeat until <(size) > [99]>\n        repeat (10)\n            change size by (2)\n        end\n    end\n    wait (0.09) seconds\n    repeat until <(size) < [81]>\n        repeat (10)\n            change size by (-2)\n        end\n    end\nend\n\nwhen I receive [start outro v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [clear clones v]\nshow\nforever\n    go to [back v] layer\n    go to (player v)\nend\n\n@Spikes\n\nwhen flag clicked\nset [level v] to [1]\nswitch costume to (costume1 v)\n\nwhen I receive [new level v]\nnext costume\n\nwhen I receive [flag v]\nnext costume\n\n@old trampolines\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nswitch costume to (trampoline1 v)\n\nwhen I receive [new level v]\nnext costume\n\n@Skip Button\n\nwhen flag clicked\nhide\nforever\n    go to x: (-193) y: (-160)\n    point in direction (round ((([sin v] of (((timer) + (1)) * (500)) ) * (8)) + (90)))\nend\n\nwhen I receive [clear clones v]\nshow\n\nwhen this sprite clicked\nbroadcast (New Level v)\nbroadcast (come on!!! v)\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) > [119]>\n            repeat (10)\n                change size by (2)\n            end\n        end\n    else\n        repeat until <(size) < [101]>\n            repeat (10)\n                change size by (-2)\n            end\n        end\n    end\nend\n\nwhen I receive [start outro v]\nhide\n\n@Saws\n\nwhen I receive [clear clones v]\nshow\nforever\n    go to [back v] layer\n    turn right (10) degrees\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [new level v]\nnext costume\n\n@Saws2\n\nwhen I receive [clear clones v]\nshow\nforever\n    go to [back v] layer\n    turn right (10) degrees\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [new level v]\nnext costume\n\n@Cool backdrop\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nset [ghost v] effect to (pick random (40) to (90))\nset size to (pick random (40) to (80)) %\ngo to x: (240) y: (pick random (180) to (-180))\nglide (pick random (1) to (3)) secs to x: (-240) y: (pick random (180) to (-180))\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <key (p v) pressed?> then\n        hide\n        delete this clone\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [clear clones v]\nhide\nforever\n    create clone of (_myself_ v)\n    wait (.3) seconds\nend\n\n@Thumbnail\n\nwhen flag clicked\nchange [ghost v] effect by (100)\n\n@Outro [2020]\n\nwhen flag clicked\nhide\n\nwhen I receive [start outro v]\nplay sound [Beginnin v] until done\nforever\n    play sound [Change this if you want to v] until done\nend\n\nwhen I receive [start outro v]\nswitch costume to (cover you can change the colour v)\ncreate clone of (_myself_ v)\nswitch costume to (cover you can change the colour v)\ncreate clone of (_myself_ v)\nwait (1.5) seconds\nswitch costume to (background v)\ncreate clone of (_myself_ v)\nswitch costume to (person v)\ncreate clone of (_myself_ v)\nswitch costume to (the cool bazza18  v)\ncreate clone of (_myself_ v)\nswitch costume to (text v)\ncreate clone of (_myself_ v)\ngo [backward v] (12) layers\nset y to (180)\nforever\n    wait (0.03) seconds\n    set x to (pick random (-240) to (240))\n    switch costume to (pick random (8) to (13))\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(costume [number v]) > [7]> then\n    set [ghost v] effect to (50)\n    set [move v] to [0]\n    repeat until <(y position) < [-175]>\n        change [move v] by (-1)\n        change y by (move)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nshow\nif <(costume [number v]) = [2]> then\n    go to [front v] layer\n    switch costume to (nothing v)\n    set size to (100) %\n    switch costume to (cover you can change the colour v)\n    go to x: (0) y: (500)\n    repeat until <(round (y position)) = [0]>\n        go to [front v] layer\n        change y by (((0) - (round (y position))) / (8))\n    end\n    wait (1.2) seconds\n    set [move v] to [0]\n    repeat until <(y position) > [160]>\n        go to [front v] layer\n        change [move v] by (2)\n        change y by (move)\n    end\n    delete this clone\nend\nif <(costume [number v]) = [3]> then\n    go to [front v] layer\n    switch costume to (nothing v)\n    set size to (100) %\n    switch costume to (cover you can change the colour v)\n    go to x: (0) y: (-500)\n    repeat until <(round (y position)) = [0]>\n        go to [front v] layer\n        change y by (((0) - (round (y position))) / (8))\n    end\n    wait (1.2) seconds\n    set [move v] to [0]\n    repeat until <(y position) < [-160]>\n        go to [front v] layer\n        change [move v] by (-2)\n        change y by (move)\n    end\n    delete this clone\nend\nif <(costume [number v]) = [4]> then\n    go to x: (495) y: (-10)\n    point in direction (90)\n    switch costume to (nothing v)\n    set size to (200) %\n    switch costume to (background v)\n    go [backward v] (1000) layers\n    forever\n        change [move v] by (3)\n        turn right (([sin v] of (move) ) / (2)) degrees\n    end\nend\nif <(costume [number v]) = [5]> then\n    go to x: (160) y: (-165)\n    point in direction (95)\n    set size to (100) %\n    forever\n        change [move v] by (2)\n        turn left (([sin v] of (move) ) / (3)) degrees\n        change y by (([cos v] of (move) ) / (2))\n    end\nend\nif <(costume [number v]) = [6]> then\n    go to x: (-25) y: (-80)\n    point in direction (90)\n    set size to (90) %\n    forever\n        change [move v] by (4)\n        change size by (([sin v] of (move) ) / (4))\n        turn right (([cos v] of (move) ) / (1.5)) degrees\n    end\nend\nif <(costume [number v]) = [7]> then\n    go to x: (-120) y: (85)\n    point in direction (90)\n    switch costume to (nothing v)\n    set size to (150) %\n    switch costume to (text v)\n    go [backward v] (3) layers\n    forever\n        change [move v] by (4)\n        change x by (([sin v] of (move) ) / (0.7))\n        turn left ([cos v] of (move) ) degrees\n    end\nend\n\nbroadcast (outro v)\n\nwhen I receive [clear clones v]\nwait until <(Level) = [12]>\nbroadcast (start outro v)\n\n@love and fave detector\n\nwhen flag clicked\nhide\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\nwait (1) seconds\nshow\ngo to x: (0) y: (50)\nreset timer\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\n
Hello!\n\nLike     Fav    Follow\n\nInstructions:\nArrow keys or Mobile to move and jump\nAvoid the spikes and saws\n\nNight a platformer~ by @--Good--\n\n___________________________________________\n⚠⚠⚠⚠ !! NO ADVERTISING!! ⚠⚠⚠⚠\n\nThis game took over 30 hours of work. Please give it attention and consider leaving a love and fave.\n\nEnjoy!\nComment!\nHave fun!\n\nWhat are you waiting for! Come on start playing already!!\n\nTHANKS FOR TOP VIEWS!\nTags:\n#Night #platformer #spikes #saws #light #--Good--