Nothing - A Platformer -1.5- (Mobile-Friendly)
@Stage\n\nwhen flag clicked\nset [le level v] to [1]\n\n@lil dude\n\nwhen flag clicked\nshow\ngo to x: (-200) y: (-99)\nswitch costume to (costume1 v)\nset size to (150) %\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    change [yv v] by (-0.5)\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (y position)>>> then\n        change [xv v] by (-1)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [xv v] by (1)\n    end\n    set [xv v] to ((XV) * (0.9))\n    change x by (XV)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change y by (1)\n                            if <touching color (#000000)?> then\n                                change y by (-6)\n                                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>> then\n                                    set [yv v] to [10]\n                                    if <(XV) > [0]> then\n                                        set [xv v] to [-10]\n                                    else\n                                        set [xv v] to [10]\n                                    end\n                                else\n                                    change x by ((XV) * (-1))\n                                    set [xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (YV)\n    if <touching color (#000000)?> then\n        change y by ((YV) * (-.5))\n        set [yv v] to [0]\n    end\n    change y by (-0.5)\n    if <touching color (#ffbe87)?> then\n        set [yv v] to [15]\n    end\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>> and <touching color (#000000)?>> then\n        set [yv v] to [10]\n    end\nend\n\nwhen I receive [el reset v]\ngo to x: (item (le level) of [position v]) y: (item (le level) of [position 2 v])\nset [xv v] to [0]\nset [yv v] to [0]\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nforever\n    if <touching (el slammy v)?> then\n        broadcast (el reset v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (le thingy v)?> then\n        broadcast (le next level v)\n        broadcast (el reset v)\n    end\nend\n\nnext backdrop\nwait (1) seconds\n\nwhen flag clicked\nforever\n    if <<touching (el box v)?> or <<touching (el slammy v)?> or <<touching (le death v)?> or <<touching color (#ffffff)?> or <touching color (#f2f2f2)?>>>>> then\n        broadcast (el reset v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (le thingy v)?> then\n        broadcast (le next level v)\n    end\nend\n\nwhen flag clicked\ndelete all of [position 2 v]\ndelete all of [position v]\nadd [-200] to [position v]\nadd [-175] to [position v]\nadd [-99] to [position 2 v]\nadd [-50] to [position 2 v]\nadd [-175] to [position v]\nadd [-30] to [position 2 v]\nadd [-120] to [position v]\nadd [-10] to [position 2 v]\nadd [-158] to [position v]\nadd [-77] to [position 2 v]\nadd [-187] to [position v]\nadd [-105] to [position 2 v]\nadd [-208] to [position v]\nadd [-114] to [position 2 v]\nadd [-209] to [position v]\nadd [-100] to [position 2 v]\nadd [-216] to [position v]\nadd [1] to [position 2 v]\nadd [-221] to [position v]\nadd [-85] to [position 2 v]\nadd [-240] to [position v]\nadd [-95] to [position 2 v]\nadd [-207] to [position v]\nadd [-101] to [position 2 v]\nadd [-200] to [position v]\nadd [-99] to [position 2 v]\nadd [-218] to [position v]\nadd [-100] to [position 2 v]\nadd [-201] to [position v]\nadd [1] to [position 2 v]\nadd [-210] to [position v]\nadd [-105] to [position 2 v]\nadd [-219] to [position v]\nadd [-62] to [position 2 v]\nadd [-219] to [position v]\nadd [-75] to [position 2 v]\nadd [-229] to [position v]\nadd [-87] to [position 2 v]\nadd [-202] to [position v]\nadd [-82] to [position 2 v]\n\nset [☁ highscore: v] to [100.000]\n\nset [☁ highscore: v] to [0]\n\n@el Level\n\nwhen flag clicked\nforever\n    play sound [toby fox - UNDERTALE Soundtrack - 33 Quiet Water.mp3 v] until done\n    if <(le level) = [20]> then\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(le level) = [20]> then\n        stop [other scripts in sprite v]\n    end\nend\n\n@le death\n\nwhen flag clicked\nforever\n    if <touching (lil dude v)?> then\n        broadcast (el reset v)\n    end\nend\n\nwhen flag clicked\nforever\n    show\nend\n\n@el slammy\n\nwhen flag clicked\npoint in direction (90)\nshow\nif <(le level) = [1]> then\n    repeat until <(le level) = [2]>\n        go to x: (34) y: (172)\n        glide (0.3) secs to x: (34) y: (18)\n        wait (0.34) seconds\n        glide (1.2) secs to x: (34) y: (172)\n        wait (0.12) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(le level) = [2]> or <(le level) = [4]>> then\n        hide\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(le level) = [3]> then\n        repeat until <(le level) = [4]>\n            show\n            go to x: (2) y: (172)\n            glide (0.3) secs to x: (2) y: (25)\n            wait (0.34) seconds\n            glide (1.2) secs to x: (2) y: (172)\n            wait (0.12) seconds\n        end\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(le level) = [10]> then\n        show\n        repeat until <(le level) = [11]>\n            go to x: (-127) y: (172)\n            glide (0.3) secs to x: (-127) y: (-50)\n            wait (0.34) seconds\n            glide (1.2) secs to x: (-127) y: (172)\n            wait (0.12) seconds\n        end\n    end\nend\n\nwhen I start as a clone\nif <(le level) = [10]> then\n    show\n    repeat until <(le level) = [11]>\n        forever\n            if <(le level) = [11]> then\n                delete this clone\n            end\n            go to x: (127) y: (172)\n            glide (0.3) secs to x: (127) y: (-50)\n            wait (0.34) seconds\n            glide (1.2) secs to x: (127) y: (172)\n            wait (0.12) seconds\n            if <(le level) = [11]> then\n                delete this clone\n            end\n        end\n    end\n    forever\n        if <(le level) = [11]> then\n            delete this clone\n        end\n    end\nend\n\ngo [backward v] (1) layers\n\nwhen flag clicked\nforever\n    if <(le level) = [10]> then\n        create clone of (_myself_ v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(le level) = [11]> or <<(le level) = [13]> or <(le level) = [19]>>> then\n        hide\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(le level) = [12]> then\n        point in direction (180)\n        show\n        repeat until <(le level) = [13]>\n            go to x: (200) y: (0)\n            glide (0.3) secs to x: (125) y: (0)\n            wait (0.34) seconds\n            glide (.8) secs to x: (200) y: (0)\n            wait (0.12) seconds\n        end\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    if <(le level) = [18]> then\n        point in direction (90)\n        repeat until <(le level) = [19]>\n            show\n            go to x: (2) y: (172)\n            glide (0.3) secs to x: (2) y: (-62)\n            wait (0.34) seconds\n            glide (.8) secs to x: (2) y: (172)\n            wait (0.12) seconds\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(le level) = [11]> then\n        delete this clone\n    end\nend\n\n@le thingy\n\nwhen flag clicked\ngo to x: (146) y: (26)\n\nwhen flag clicked\nshow\nset size to (100) %\nset [ghost v] effect to (35)\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume2 v)\nset size to (20) %\nforever\n    repeat (8)\n        wait (0.05) seconds\n        change size by (10)\n    end\n    repeat (8)\n        wait (0.05) seconds\n        change size by (-10)\n    end\nend\n\nwhen flag clicked\nforever\n    go to x: (item (le level) of [1 v]) y: (item (le level) of [2 v])\nend\n\nwhen I start as a clone\nforever\n    go to x: (item (le level) of [1 v]) y: (item (le level) of [2 v])\nend\n\nwhen flag clicked\ndelete all of [1 v]\ndelete all of [2 v]\nadd [146] to [1 v]\nadd [26] to [2 v]\nadd [197] to [1 v]\nadd [154] to [2 v]\nadd [173] to [1 v]\nadd [-99] to [2 v]\nadd [-122] to [1 v]\nadd [173] to [2 v]\nadd [85] to [1 v]\nadd [115] to [2 v]\nadd [183] to [1 v]\nadd [-107] to [2 v]\nadd [233] to [1 v]\nadd [-84] to [2 v]\nadd [205] to [1 v]\nadd [-105] to [2 v]\nadd [219] to [1 v]\nadd [-6] to [2 v]\nadd [203] to [1 v]\nadd [-78] to [2 v]\nadd [220] to [1 v]\nadd [-76] to [2 v]\nadd [214] to [1 v]\nadd [-101] to [2 v]\nadd [225] to [1 v]\nadd [-114] to [2 v]\nadd [231] to [1 v]\nadd [-101] to [2 v]\nadd [223] to [1 v]\nadd [-23] to [2 v]\nadd [220] to [1 v]\nadd [-107] to [2 v]\nadd [148] to [1 v]\nadd [66] to [2 v]\nadd [177] to [1 v]\nadd [-85] to [2 v]\nadd [222] to [1 v]\nadd [-99] to [2 v]\n\nwhen flag clicked\nforever\n    if <(le level) = [20]> then\n        hide\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(le level) = [20]> then\n        hide\n        delete this clone\n    end\nend\n\n@el thumbnail \n\nwhen flag clicked\nhide\n\ngo to [front v] layer\n\n@le glare\n\nwhen flag clicked\nswitch costume to (costume2 v)\nshow variable [le level v]\nset [brightness v] effect to (0)\ngo to [back v] layer\ngo to [back v] layer\n\nwhen I receive [el shine v]\ngo to [front v] layer\nset [brightness v] effect to (0)\nrepeat (50)\n    change [brightness v] effect by (2)\nend\nswitch costume to (costume3 v)\nset [brightness v] effect to (0)\n\nwhen I receive [el shine v]\nwait (0.2) seconds\ngo to [front v] layer\nhide variable [le level v]\n\nwhen flag clicked\nshow\n\n@el platforms\n\nwhen flag clicked\nset [le level v] to [1]\nswitch costume to (costume1 v)\n\nwhen I receive [le next level v]\nchange [le level v] by (1)\nnext costume\nwait (1.2) seconds\n\nwhen flag clicked\nshow\n\n@la rift \n\nwhen I start as a clone\nset [xv v] to (pick random (-20) to (70))\nset [yv v] to (pick random (-30) to (90))\nset x to (pick random (-100) to (150))\nset y to (pick random (-100) to (150))\nshow\nbroadcast (el shine v)\nforever\n    change x by ((xv) / (2))\n    change y by ([abs v] of ((yv) / (2)) )\n    change [yv v] by (-0.5)\n    turn right ((xv) / (0.3)) degrees\nend\n\nwhen flag clicked\nset [costume v] to [0]\nset size to (100) %\nswitch costume to (1 v)\nhide\ngo to x: (196) y: (-98)\nforever\n    if <(le level) = [20]> then\n        show\n    end\n    if <touching (lil dude v)?> then\n        broadcast (le bruh v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [le bruh v]\nstart sound [Glass Breaking v]\nrepeat (9)\n    next costume\nend\nwait (1) seconds\nstart sound [Earth Rumble Sound Effect.mp3 v]\nrepeat (75)\n    change x by (pick random (-3) to (3))\n    change y by (pick random (-3) to (3))\nend\nwait (1) seconds\nstart sound [Rip v]\nrepeat (4)\n    next costume\n    create clone of (_myself_ v)\nend\nhide\n\nwhen flag clicked\nforever\n    if <(le level) = [1]> then\n        hide\n    end\nend\n\nwhen flag clicked\ngo to x: (196) y: (-98)\n\nwhen flag clicked\ngo to x: (196) y: (-98)\n\n@el light\n\n@le level\n\nwhen flag clicked\nforever\n    switch costume to (le level)\nend\n\nwhen flag clicked\nforever\n    hide variable [le level v]\nend\n\nwhen flag clicked\nforever\n    glide (0.5) secs to x: (-210) y: (pick random (150) to (165))\nend\n\nglide (1) secs to x: (-210) y: (pick random (1) to (10))\n\nturn right (-4) degrees\n\nwhen flag clicked\npoint in direction (90)\nrepeat (10)\n    turn right (3) degrees\n    wait (0.1) seconds\nend\nforever\n    repeat (10)\n        turn left (6) degrees\n        wait (0.1) seconds\n    end\n    repeat (10)\n        turn right (6) degrees\n        wait (0.1) seconds\n    end\nend\n\nwhen flag clicked\nshow\n\nwhen I receive [el shine v]\nhide\n\n@el timer\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\n\nforever\n\nglide (0.5) secs to x: (-210) y: (pick random (150) to (165))\n\nglide (1) secs to x: (-210) y: (pick random (1) to (10))\n\nturn right (-4) degrees\n\nwhen flag clicked\n\nwhen flag clicked\nshow variable [le timer v]\nhide variable [☁ highscore: v]\nreset timer\nforever\n    set [le timer v] to (timer)\nend\n\nwhen I receive [el shine v]\nhide\n\npoint in direction (90)\nrepeat (10)\n    turn right (3) degrees\n    wait (0.1) seconds\nend\nforever\n    repeat (10)\n        turn left (6) degrees\n        wait (0.1) seconds\n    end\n    repeat (10)\n        turn right (6) degrees\n        wait (0.1) seconds\n    end\nend\n\nforever\n    switch costume to (costume10 v)\nend\n\nwhen I receive [el shine v]\nif <(le timer) < (☁ Highscore:)> then\n    set [☁ highscore: v] to (le timer)\nend\nhide variable [le timer v]\nshow variable [☁ highscore: v]\n\nset [☁ highscore: v] to [0]\n\nhide variable [le timer v]\n\n