[MOBILE FRIENDLY] Darkness | A Platformer | #games #all #trending #platformer #art #music 

Instructions: -DARKNESS- \n-A PLATFORMER-\n\nEveryone, my next game will be epic! :)\n\nOk, so this is a platformer, but I really wanted to make this because I think the darkness effect is sick.\n\nI would classify this as... kinda generic? xD\n\nLike and fav if you enjoyed!\nFollow me at @TrentonTNT for more games!\n\nOriginal release date Jan 2021\n\n-INSTRUCTIONS-\n\n> Use WASD to move or arrow keys or tap around screen (mobile friendly)\n> W to jump or up arrow keys or drag up\n> Dodge spikes and acid\n> Survive until the end \n> Have fun xD\n\n-TAGS-\n\n#games #all #art #music #trending #platformer #darkness #trentontnt

@Stage\n\nwhen flag clicked\nswitch backdrop to (intro v)\n\nwhen flag clicked\nforever\n    set volume to (100) %\n    wait until <key (m v) pressed?>\n    wait until <not <key (m v) pressed?>>\n    set volume to (0) %\n    wait until <key (m v) pressed?>\n    wait until <not <key (m v) pressed?>>\nend\n\nwhen I receive [>> intro done v]\nforever\n    if <(pick random (1) to (2)) = [1]> then\n        play sound [Vexento - Syndrome v] until done\n    else\n        play sound [Energy - Alan Walker v] until done\n    end\nend\n\nwhen I receive [>> intro done v]\nswitch backdrop to (game v)\n\nwhen I receive [next level v]\nswitch backdrop to (game2 v)\nforever\n    stop [this script v]\nend\n\n@Player\n\ndefine Platform\nchange y by (1)\ngo to [front v] layer\nif <(x position) = [240]> then\n    broadcast (next level v)\n    Death\nend\nif <(x position) = [-241]> then\n    set [x_vel v] to [0]\nend\nchange [y_vel v] by (-1)\nif <<<key (right arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>> or <key (d v) pressed?>> then\n    point in direction (90)\n    change [x_vel v] by (1)\nend\nif <<<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>> or <key (a v) pressed?>> then\n    point in direction (-90)\n    change [x_vel v] by (-1)\nend\nset [x_vel v] to ((x_vel) * (.9))\nchange x by (x_vel)\nif <<touching (ground v)?> or <touching (move v)?>> then\n    change y by (1)\n    if <<touching (ground v)?> or <touching (move v)?>> then\n        change y by (1)\n        if <<touching (ground v)?> or <touching (move v)?>> then\n            change y by (1)\n            if <<touching (ground v)?> or <touching (move v)?>> then\n                change y by (1)\n                if <<touching (ground v)?> or <touching (move v)?>> then\n                    change y by (1)\n                    if <<touching (ground v)?> or <touching (move v)?>> then\n                        change y by (1)\n                        if <<touching (ground v)?> or <touching (move v)?>> then\n                            change y by (-6)\n                            change x by ((x_vel) * (-1))\n                            if <<<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> or <key (w v) pressed?>> then\n                                change x by (0)\n                                set [y_vel v] to [10]\n                                if <(x_vel) > [0]> then\n                                    set [x_vel v] to [-7]\n                                else\n                                    set [x_vel v] to [7]\n                                end\n                            else\n                                set [x_vel v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (y_vel)\nif <<touching (ground v)?> or <touching (move v)?>> then\n    change y by ((y_vel) * (-1))\n    set [y_vel v] to [0]\nend\nchange y by (-1)\nif <<<touching (ground v)?> or <touching (move v)?>> and <<<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> or <key (w v) pressed?>>> then\n    set [y_vel v] to [12]\nend\nif <<touching (dangers v)?> or <(y position) < [-175]>> then\n    start sound [Roblox Death Sound  OOF Sound Effect v]\n    Death\nend\n\ndefine Death\nset [y_vel v] to [0]\nset [x_vel v] to [0]\nset size to (100) %\ngo to x: (-210) y: (-50)\n\nwhen flag clicked\nhide\n\nwhen I receive [>> intro done v]\nshow\nDeath\ngo to [front v] layer\nshow\nset [ghost v] effect to (0)\nset rotation style [left-right v]\nforever\n    Platform\nend\n\n@Ground\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [>> intro done v]\nswitch costume to (1 v)\nshow\ngo to x: (0) y: (0)\n\n@DANGERS\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen I receive [>> intro done v]\nshow\nswitch costume to (dangers v)\ngo to x: (0) y: (0)\ngo to [back v] layer\n\n@Thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\n\n@Darkness\n\nwhen flag clicked\nhide\n\nwhen I receive [>> intro done v]\nswitch costume to (costume1 v)\nshow\nforever\n    go to (player v)\nend\n\n@Player Trail\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nrepeat (10)\n    change [ghost v] effect by (21)\nend\ndelete this clone\n\nwhen I receive [scroll v]\nhide\ndelete this clone\n\nwhen I receive [>> intro done v]\ngo to [back v] layer\nshow\nforever\n    point in direction ([direction v] of [player v])\n    switch costume to ([costume name v] of [player v])\n    go to x: ([x position v] of [player v]) y: ([y position v] of [player v])\n    create clone of (_myself_ v)\nend\n\n@TNTintro\n\ndefine Clone (id) (#)\nset [id v] to (id)\nrepeat (#)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <[Particle] = (ID)> then\n    switch costume to (particle v)\n    set [brightness v] effect to (brightness)\n    set [ghost v] effect to (100)\n    show\n    set [a v] to (pick random (-15) to (15))\n    set [b v] to (pick random (-15) to (15))\n    set [c v] to (pick random (-50) to (50))\n    set size to (pick random (50) to (300)) %\n    repeat (25)\n        go to [front v] layer\n        switch costume to (size hack 2 v)\n        change [ghost v] effect by (-20)\n        set size to ((size) * (0.9)) %\n        change x by (a)\n        change y by (b)\n        turn right (c) degrees\n        set [a v] to ((a) * (0.9))\n        set [b v] to ((b) * (0.9))\n        switch costume to (particle v)\n    end\n    delete this clone\nend\n\ndefine Particle (#) (brightness)\nset [brightness v] to (brightness)\nrepeat (#)\n    set [id v] to [Particle]\n    create clone of (_myself_ v)\nend\n\ndefine Smooth Glide To X: (x) Y: (y) Size: (size) Dir: (dir) & Speed: (speed) || Costume: (costume)\nrepeat until <<<(x position) = (x)> and <(y position) = (y)>> and <<(size) = (size)> and <(round (direction)) = (dir)>>>\n    switch costume to (pos hack v)\n    change x by (((x) - (x position)) / (speed))\n    change y by (((y) - (y position)) / (speed))\n    turn right (((dir) - (direction)) / (speed)) degrees\n    switch costume to (costume)\n    change size by (((size) - (size)) / (speed))\nend\n\nwhen flag clicked\nset size to (100) %\nreset timer\nhide\nstart sound [James Landino - Press Garden Zone 2 v]\nclear graphic effects\nwait (1.2) seconds\nset [brightness v] effect to (0)\nset [ghost v] effect to (0)\nClone [full] [1]\nclear graphic effects\nset [brightness v] effect to (100)\ngo to [front v] layer\nwait (.2) seconds\nset [brightness v] effect to (100)\nset [ghost v] effect to (0)\nClone [1/3] [1]\nset [ghost v] effect to (0)\nwait (.3) seconds\nset [ghost v] effect to (0)\nClone [2/3] [1]\nset [ghost v] effect to (0)\nwait (.3) seconds\nset [ghost v] effect to (0)\nClone [3/3] [1]\nwait (.3) seconds\nclear graphic effects\nset [ghost v] effect to (50)\nClone [Rad2] [1]\nwait (.15) seconds\nclear graphic effects\nClone [Rad2] [1]\nwait (.15) seconds\nset [brightness v] effect to (100)\nClone [Rad2] [1]\nclear graphic effects\nwait (0) seconds\nset [ghost v] effect to (50)\nClone [Rad] [1]\nwait (.15) seconds\nclear graphic effects\nClone [Rad] [1]\nwait (.15) seconds\nset [brightness v] effect to (100)\nClone [Rad] [1]\nclear graphic effects\nwait (.5) seconds\nClone [Logo 1] [1]\nParticle [30] [5]\nwait (.5) seconds\nclone text [0]\nParticle [15] [0]\nClone [fully] [1]\nwait (.5) seconds\nClone [full name] [1]\nParticle [25] [100]\nwait (.3) seconds\nset [brightness v] effect to (100)\nset [ghost v] effect to (50)\nClone [Rad] [1]\nwait (.1) seconds\nclear graphic effects\nset [brightness v] effect to (100)\nClone [Rad] [1]\nClone [Logo 2] [1]\nset [# v] to [1]\nwait (.05) seconds\nclear graphic effects\nrepeat (4)\n    Clone (join [cver] (#)) [1]\n    change [# v] by (1)\n    wait (.15) seconds\nend\nset [brightness v] effect to (100)\nclone text [0]\nClone [Logo 3] [1]\nset [# v] to [1]\nset [brightness v] effect to (100)\nrepeat (4)\n    Clone (join [cver] (#)) [1]\n    change [# v] by (1)\nend\nset [# v] to [1]\nwait (.1) seconds\nset [brightness v] effect to (-100)\nrepeat (4)\n    Clone (join [cver] (#)) [1]\n    change [# v] by (1)\nend\nset [# v] to [1]\nwait (.1) seconds\nset [brightness v] effect to (0)\nrepeat (4)\n    Clone (join [cver] (#)) [1]\n    change [# v] by (1)\nend\nClone [Circle] [1]\n\nwhen I start as a clone\nif <[Full] = (ID)> then\n    show\n    point in direction (90)\n    go to [back v] layer\n    switch costume to (100 v)\n    set size to (100000) %\n    go to x: (0) y: (370)\n    set size to (100) %\n    repeat (13)\n        set size to (100000) %\n        change y by ((((y position) - (370)) - (3)) / (3))\n        set size to (100) %\n    end\n    repeat (50)\n        change y by (((0) - (y position)) / (5))\n    end\nend\nif <[1/3] = (ID)> then\n    show\n    point in direction (90)\n    go to [front v] layer\n    switch costume to (1/3 v)\n    set size to (100000) %\n    go to x: (0) y: (370)\n    set size to (100) %\n    repeat (13)\n        set size to (100000) %\n        change y by ((((y position) - (370)) - (3)) / (3))\n        set size to (100) %\n    end\n    repeat (50)\n        change y by (((0) - (y position)) / (5))\n    end\nend\n\nwhen I start as a clone\nif <[2/3] = (ID)> then\n    show\n    point in direction (90)\n    go to [front v] layer\n    switch costume to (2/3 v)\n    set size to (100000) %\n    go to x: (0) y: (370)\n    set size to (100) %\n    repeat (13)\n        set size to (100000) %\n        change y by ((((y position) - (370)) - (3)) / (3))\n        set size to (100) %\n    end\n    repeat (50)\n        change y by (((0) - (y position)) / (5))\n    end\nend\nif <[3/3] = (ID)> then\n    show\n    point in direction (90)\n    go to [front v] layer\n    switch costume to (3/3 v)\n    set size to (100000) %\n    go to x: (0) y: (370)\n    set size to (100) %\n    repeat (13)\n        set size to (100000) %\n        change y by ((((y position) - (370)) - (3)) / (3))\n        set size to (100) %\n    end\n    repeat (50)\n        change y by (((0) - (y position)) / (5))\n    end\nend\nif <[Circle] = (ID)> then\n    wait (1) seconds\n    go to [front v] layer\n    switch costume to (size hack 1 v)\n    set size to (10000) %\n    clear graphic effects\n    switch costume to (circle v)\n    show\n    set [circle var v] to [1000]\n    repeat (50)\n        change [ghost v] effect by (2)\n    end\n    wait (0.5) seconds\n    broadcast (>> Intro done v)\n    delete this clone\nend\nif <[full name] = (ID)> then\n    switch costume to (\[x\] full v)\n    clear graphic effects\n    set [brightness v] effect to (100)\n    show\n    go to [front v] layer\n    set size to (0) %\n    point in direction (87)\n    Smooth Glide To X: [0] Y: [0] Size: [300] Dir: [90] & Speed: [4] || Costume: [\[X\] Full]\nend\n\nwhen I start as a clone\nif <[Rad] = (ID)> then\n    go to [front v] layer\n    switch costume to (pos hack v)\n    go to x: (0) y: (-180)\n    switch costume to (size hack 1 v)\n    set size to (100) %\n    switch costume to (size hack 1 v)\n    point in direction (90)\n    switch costume to (rad v)\n    show\n    set [var1 v] to [-1]\n    repeat (12)\n        change [var1 v] by ((var1) / (4))\n        turn right ((var1) / (1.01910910190129)) degrees\n    end\n    \n        turn right (((-90) - (direction)) / (6)) degrees\n    end\nend\n\nwhen I start as a clone\nif <[Rad2] = (ID)> then\n    go to [front v] layer\n    switch costume to (pos hack v)\n    go to x: (-240) y: (-180)\n    switch costume to (size hack 1 v)\n    set size to (100) %\n    switch costume to (size hack 1 v)\n    point in direction (180)\n    switch costume to (rad v)\n    show\n    set [var1 v] to [.5]\n    set [dir v] to [180]\n    repeat (12)\n        change [var1 v] by ((var1) / (4))\n        change [dir v] by (var1)\n        point in direction (dir)\n    end\n    \n        change [dir v] by (((270) - (dir)) / (6))\n        point in direction (dir)\n    end\nend\n\nwhen I start as a clone\nif <[Logo 1] = (ID)> then\n    go to [front v] layer\n    switch costume to (logo v)\n    show\n    set size to (0) %\n    set [ghost v] effect to (100)\n    point in direction (180)\n    set [size bounce v] to [0]\n    repeat (20)\n        turn right (((90) - (direction)) / (5)) degrees\n        set [size bounce v] to (((size bounce) * (0.8)) + (((45) - (size)) * (0.1)))\n        change size by (size bounce)\n        change [ghost v] effect by (-10)\n    end\n    set [ghost v] effect to (75)\n    set [size bounce v] to [0]\n    Particle [6] [0]\n    forever\n        set [size bounce v] to (((size bounce) * (0.8)) + (((35) - (size)) * (0.1)))\n        change size by (size bounce)\n    end\nend\n\ndefine clone text (wait)\nClone [\[X\] T] [1]\nwait (wait) seconds\nClone [\[X\] R] [1]\nwait (wait) seconds\nClone [\[X\] E] [1]\nwait (wait) seconds\nClone [\[X\] N] [1]\nwait (wait) seconds\nClone [\[X\] T2] [1]\nwait (wait) seconds\nClone [\[X\] O] [1]\nwait (wait) seconds\nClone [\[X\] N2] [1]\nwait (wait) seconds\nClone [\[X\] T3] [1]\nwait (wait) seconds\nClone [\[X\] N3] [1]\nwait (wait) seconds\nClone [\[X\] T4] [1]\n\nwhen I start as a clone\nif < (ID) contains [\[X\]]?> then\n    run\n    switch costume to (pos hack v)\n    go to x: (pick random (-10) to (10)) y: (set)\n    switch costume to (ID)\n    set size to (0) %\n    point in direction (pick random (85) to (95))\n    show\n    go to [front v] layer\n    Smooth Glide To X: [0] Y: [0] Size: [300] Dir: [90] & Speed: [6] || Costume: (ID)\n    wait (.1) seconds\n    delete this clone\nend\n\ndefine run\nif <[\[X\] T] = (ID)> then\n    repeat until <<(set) = [-1]> or <(set) = [1]>>\n        set [set v] to (pick random (-1) to (1))\n    end\n    set [\[intro\] e v] to (set)\nelse\n    if <(\[intro\] e) = [-1]> then\n        set [set v] to [1]\n        set [\[intro\] e v] to [-1]\n    else\n        if <(\[intro\] e) = [1]> then\n            set [set v] to [-1]\n            set [\[intro\] e v] to [1]\n        end\n    end\nend\n\nwhen I start as a clone\nif <[fully] = (ID)> then\n    show\n    point in direction (90)\n    go to [front v] layer\n    switch costume to (full v)\n    set size to (100000) %\n    go to x: (900) y: (0)\n    set size to (100) %\n    repeat (13)\n        set size to (100000) %\n        change x by ((((x position) - (370)) - (3)) / (3))\n        set size to (100) %\n    end\n    repeat (50)\n        change x by (((0) - (x position)) / (5))\n    end\nend\n\nwhen I start as a clone\nif <[logo 2] = (ID)> then\n    clear graphic effects\n    show\n    point in direction (90)\n    go to [front v] layer\n    switch costume to (logo v)\n    set size to (100000) %\n    go to x: (900) y: (0)\n    set size to (35) %\n    repeat (13)\n        set size to (100000) %\n        change x by ((((x position) - (370)) - (3)) / (3))\n        set size to (30) %\n    end\n    repeat (50)\n        change x by (((0) - (x position)) / (5))\n    end\nend\nif < (ID) contains [cver]?> then\n    switch costume to (rad v)\n    show\n    point in direction (90)\n    go to [front v] layer\n    switch costume to (ID)\n    set size to (100000) %\n    go to x: (0) y: (-900)\n    set size to (100) %\n    set [ghost v] effect to (100)\n    repeat (13)\n        set size to (100000) %\n        change y by ((((y position) - (370)) - (3)) / (3))\n        set size to (100) %\n        change [ghost v] effect by (-2)\n    end\n    repeat (100)\n        change y by (((0) - (y position)) / (5))\n        change [ghost v] effect by (-5)\n    end\nend\n\nwhen I start as a clone\nif <[Logo 3] = (ID)> then\n    clear graphic effects\n    show\n    go to [front v] layer\n    point in direction (-90)\n    switch costume to (logo v)\n    set size to (0) %\n    go to x: (0) y: (0)\n    set [ghost v] effect to (100)\n    repeat until <<(round (size)) = [35]> and <(round (direction)) = [90]>>\n        change [ghost v] effect by (-1)\n        set [brightness v] effect to (100)\n        change size by (((35) - (size)) / (5))\n        turn right (([abs v] of ((90) - (direction)) ) / (5)) degrees\n    end\nend\n\nwhen I start as a clone\nif <not <<(ID) = [Circle]> or <(ID) = [Particle]>>> then\n    wait until <(timer) > [8.5]>\n    delete this clone\nend\n\n@Like fav follow\n\nwhen flag clicked\ngo to x: (0) y: (50)\nhide\nwait (pick random (20) to (30)) seconds\nshow\nrepeat until <(y position) < [6]>\n    change y by (((5) - (y position)) / (6))\nend\nwait (3.5) seconds\nrepeat until <(y position) > [49.5]>\n    change y by (((y position) + (5)) / (5))\nend\nhide\nforever\n    wait (pick random (30) to (40)) seconds\n    show\n    repeat until <(y position) < [6]>\n        change y by (((5) - (y position)) / (6))\n    end\n    wait (3.5) seconds\n    repeat until <(y position) > [49.5]>\n        change y by (((y position) + (5)) / (5))\n    end\n    hide\nend\n\nwhen flag clicked\nforever\n    go [forward v] (1000000) layers\nend\n\n