Lies || A Partial Scrolling Platformer

Instructions: Lɪᴇꜱ || A ᴘᴀʀᴛɪᴀʟ ꜱᴄʀᴏʟʟɪɴɢ ᴘʟᴀᴛғᴏʀᴍᴇʀ\n-------------------------------------------------------------------------\nMᴀᴅᴇ ʙʏ: @jindalsargun\n-------------------------------------------------------------------------\nɪɴsᴛʀᴜᴄᴛɪᴏɴs: \nᴜsᴇ ᴡᴀsᴅ ᴏʀ ᴀʀʀᴏᴡ ᴋᴇʏs ᴛᴏ ᴍᴏᴠᴇ.\nᴀᴠᴏɪᴅ sᴘɪᴋᴇs. \nʏᴏᴜ ᴄᴀɴ ᴊᴜᴍᴘ ᴏɴ ᴛʀᴀᴍᴘᴏʟɪɴs.\n-------------------------------------------------------------------------\nᴜᴘᴅᴀᴛᴇs: \n7ᴛʜ ᴊᴜʟʏ 2021 - sʜᴀʀᴇᴅ\n-------------------------------------------------------------------------\n#jindalsargun #all #everything #platformer #player #platformers #game #games #spikes #trampoline #mobile-friendly #ground #partial #scrolling #partial-scrolling #lies #thefatrat #thecalling #flyaway #closetothesun #mayday #music #songs #ungeneric\n-------------------------------------------------------------------------

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [start v]\nswitch backdrop to (backdrop2 v)\n\n@My Intro\n\nwhen I start as a clone\nshow\nif <(ID) = [Particle]> then\n    switch costume to (bg v)\n    set size to (pick random (10) to (75)) %\n    go to [front v] layer\n    go to x: (pick random (-400) to (240)) y: (-300)\n    point in direction (60)\n    if <(timer) > [5]> then\n        show\n    else\n        hide\n    end\n    set [ghost v] effect to (50)\n    if <(size) < [40]> then\n        go [backward v] (1) layers\n    end\n    set [i v] to (pick random (3) to (7))\n    set [id v] to (pick random (2) to (6))\n    repeat until <<(x position) > [399]> or <<(x position) < [-399]> or <<(y position) > [399]> or <(y position) < [-399]>>>>\n        switch costume to (movehack v)\n        move (i) steps\n        change y by (ID)\n        change [id v] by (.01)\n        switch costume to (particle v)\n        if <(timer) > [5]> then\n            show\n            if <(timer) > [8.7]> then\n                hide\n            end\n        end\n    end\n    delete this clone\nend\nif <(ID) = [Line]> then\n    point in direction (135)\n    switch costume to (blank v)\n    set size to (100) %\n    if <(timer) > [1.5]> then\n        set [ghost v] effect to (0)\n    else\n        set [ghost v] effect to (100)\n    end\n    switch costume to (movehack v)\n    go to x: (-325) y: (200)\n    go to [back v] layer\n    go [forward v] (5) layers\n    repeat until <(x position) > [300]>\n        switch costume to (movehack v)\n        if <(timer) > [1.5]> then\n            if <(timer) > [7.5]> then\n                delete this clone\n            else\n                change x by (5)\n                change y by (-5)\n                change [ghost v] effect by (-10)\n            end\n        else\n            change x by (10)\n            change y by (-10)\n        end\n        switch costume to (linething v)\n    end\n    delete this clone\nend\nif <(ID) = [BG]> then\n    switch costume to (bg v)\n    set size to (1) %\n    go to [front v] layer\n    go [backward v] (2) layers\n    repeat (5)\n        change size by (((10) - (size)) / (8))\n    end\n    repeat (50)\n        switch costume to (blank v)\n        change size by (((700) - (size)) / (12))\n        switch costume to (bg v)\n    end\n    wait until <(timer) > [8.7]>\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\nif <(ID) = [CE]> then\n    switch costume to (ce v)\n    set size to (1) %\n    go to [back v] layer\n    go [forward v] (1) layers\n    set [i v] to [1]\n    repeat (15)\n        change [i v] by ((i) / (8))\n        change size by (i)\n    end\n    repeat (7)\n        change size by (((100) - (size)) / (12))\n    end\n    repeat (14)\n        change size by (((100) - (size)) / (12))\n        change size by (2)\n        next costume\n    end\n    delete this clone\nend\nif <(ID) = [BG2]> then\n    switch costume to (bg2 v)\n    set size to (100) %\n    set [ghost v] effect to (100)\n    go to [back v] layer\n    point in direction (90)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    wait until <(timer) > [8]>\n    delete this clone\nend\nif <(ID) = [CT]> then\n    switch costume to (circlething2 v)\n    set size to (60) %\n    set [ghost v] effect to (100)\n    go to [back v] layer\n    go [forward v] (1) layers\n    point in direction (90)\n    go to x: (-133) y: (-46)\n    repeat (10)\n        change [ghost v] effect by (-10)\n        turn right (2) degrees\n    end\n    repeat until <(timer) > [7.5]>\n        turn right (2) degrees\n    end\n    delete this clone\nend\nif <(ID) = [CT2]> then\n    switch costume to (circlething2 v)\n    set size to (60) %\n    set [ghost v] effect to (100)\n    go to [back v] layer\n    go [forward v] (1) layers\n    point in direction (90)\n    go to x: (133) y: (46)\n    repeat (10)\n        change [ghost v] effect by (-10)\n        turn left (2) degrees\n    end\n    repeat until <(timer) > [7.5]>\n        turn left (2) degrees\n    end\n    delete this clone\nend\nif <(ID) = [Name]> then\n    set [id v] to [2]\n    if <(ID) = [1]> then\n        set [brightness v] effect to (-100)\n        switch costume to (logo3 v)\n    else\n        switch costume to (name v)\n    end\n    set size to (250) %\n    set [ghost v] effect to (100)\n    go to [front v] layer\n    point in direction (45)\n    repeat (50)\n        change [ghost v] effect by (-10)\n        change size by (((100) - (size)) / (12))\n        turn right (((90) - (direction)) / (12)) degrees\n    end\n    repeat until <(timer) > [5]>\n        change size by (-.25)\n    end\n    repeat (5)\n        change size by (((65) - (size)) / (12))\n        go to x: (pick random (-2) to (2)) y: (pick random (-2) to (2))\n        set [-kami's intro x v] to (x position)\n        set [-kami's intro y v] to (y position)\n        go to [front v] layer\n    end\n    if <(ID) = [1]> then\n        set [brightness v] effect to (0)\n        switch costume to (logo3 v)\n    else\n        switch costume to (name2 v)\n    end\n    repeat (15)\n        change size by (((65) - (size)) / (12))\n        go to x: (pick random (-2) to (2)) y: (pick random (-2) to (2))\n        set [-kami's intro x v] to (x position)\n        set [-kami's intro y v] to (y position)\n        go to [front v] layer\n    end\n    repeat (10)\n        change size by (-.25)\n        go to x: (pick random (-2) to (2)) y: (pick random (-2) to (2))\n        set [-kami's intro x v] to (x position)\n        set [-kami's intro y v] to (y position)\n    end\n    repeat (10)\n        change size by (-.25)\n        go to x: (pick random (-1) to (1)) y: (pick random (-1) to (1))\n        set [-kami's intro x v] to (x position)\n        set [-kami's intro y v] to (y position)\n    end\n    go to x: (0) y: (0)\n    set [-kami's intro x v] to [0]\n    set [-kami's intro y v] to [0]\n    repeat until <(timer) > [8]>\n        change size by (-.25)\n    end\n    set [i v] to [1]\n    set [id v] to [1]\n    repeat (10)\n        change size by (i)\n        turn right (ID) degrees\n        change [i v] by ((i) / (4))\n        change [id v] by ((ID) / (8))\n    end\n    repeat (5)\n        change size by (((250) - (size)) / (8))\n        turn right (((135) - (direction)) / (12)) degrees\n    end\n    repeat (10)\n        change size by (((250) - (size)) / (8))\n        turn right (((135) - (direction)) / (12)) degrees\n        change [ghost v] effect by (10)\n    end\n    wait (1) seconds\n    broadcast (Pizzarush's Intro v)\n    delete this clone\nend\n\nwhen flag clicked\nbroadcast (-Kami's Intro v)\n\nwhen I start as a clone\nif <(ID) = [BG]> then\n    go to x: (-Kami's Intro X) y: (-Kami's Intro Y)\nend\n\nwhen I receive [-kami's intro v]\nforever\n    Clone [Particle]\nend\n\nwhen I receive [-kami's intro v]\nset [-kami's intro x v] to [0]\nset [-kami's intro y v] to [0]\nreset timer\nstart sound [MUSICA v]\nset volume to (100) %\nhide\nclear graphic effects\nset size to (100) %\ngo to x: (0) y: (0)\npoint in direction (90)\nwait until <(timer) > [1.5]>\nClone [Skip]\nClone [BG2]\nClone [CE]\nClone [Name]\nClone [CT]\nClone [CT2]\nwait until <(timer) > [5]>\nClone [BG]\n\ndefine Clone (id)\nset [id v] to (id)\ncreate clone of (_myself_ v)\n\nwhen I receive [-kami's intro v]\nrepeat until <(timer) > [1.5]>\n    Clone [Line]\n    wait (.13) seconds\nend\nrepeat until <(timer) > [7.5]>\n    Clone [Line]\n    wait (.3) seconds\nend\n\nwhen I receive [skip -kami's intro v]\nstop [other scripts in sprite v]\nrepeat (10)\n    change [ghost v] effect by (10)\n    change volume by (-10)\nend\nbroadcast (Pizzarush's Intro v)\ndelete this clone\n\nwhen I start as a clone\nif <(ID) = [Skip]> then\n    forever\n        show\n        go to [front v] layer\n        clear graphic effects\n        set size to (100) %\n        go to x: (0) y: (0)\n        point in direction (90)\n        switch costume to (skip v)\n        if <<key (space v) pressed?> or <mouse down?>> then\n            broadcast (Skip -Kami's Intro v)\n        end\n        if <(timer) > [9]> then\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            delete this clone\n        end\n    end\nend\n\nwhen I receive [pizzarush's intro v]\nbroadcast (Start v)\n\n@Player\n\nwhen I receive [reatart v]\nhide variable [level v]\nset size to (60) %\nset rotation style [left-right v]\ngo to x: (-200) y: (0)\nrepeat until <not <touching (floor v)?>>\n    broadcast (Floor v)\nend\n\nwhen I receive [next level v]\nchange [level v] by (1)\ngo to x: (240) y: (y position)\nrepeat (45)\n    set [xv v] to [0]\n    change x by (-10.2)\nend\n\ndefine Tick\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    point in direction (-90)\n    change [xv v] by (-1)\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    point in direction (90)\n    change [xv v] by (1)\nend\nset [xv v] to ((xv) * (.9))\nchange x by (xv)\nif <touching (floor v)?> then\n    change y by (1)\n    if <touching (floor v)?> then\n        change y by (1)\n        if <touching (floor v)?> then\n            change y by (1)\n            if <touching (floor v)?> then\n                change y by (1)\n                if <touching (floor v)?> then\n                    change y by (-4)\n                    change x by ((xv) * (-1))\n                end\n                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                    if <(xv) > [0]> then\n                        set [xv v] to [-7]\n                    else\n                        set [xv v] to [7]\n                    end\n                    set [yv v] to [13]\n                else\n                    set [xv v] to [0]\n                end\n            end\n        end\n    end\nend\nchange [yv v] by (-1)\nchange y by (yv)\nif <touching (floor v)?> then\n    change y by ((yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (floor v)?>> then\n    set [yv v] to [15]\nend\nchange y by (1)\nif <(x position) > [230]> then\n    broadcast (Next Level v)\nend\nif <(level) > [5]> then\n    set [level v] to [1]\nend\nif <touching (danger v)?> then\n    broadcast (Reatart v)\nend\nif <touching (tramps v)?> then\n    change [yv v] by (20)\nend\n\nwhen I receive [tick v]\nTick\n\nwhen I receive [next level v]\nchange y by (-1)\nrepeat until <not <touching (floor v)?>>\n    broadcast (Floor v)\nend\n\ndefine Floor Detection - Level transition\nif <touching (floor v)?> then\n    repeat until <not <touching (floor v)?>>\n        change y by (1)\n    end\nend\n\nwhen I receive [floor v]\nFloor Detection - Level transition\n\nwhen I receive [start v]\nshow\nbroadcast (Reatart v)\nforever\n    broadcast (Tick v)\nend\n\nwhen flag clicked\nhide\n\n@floor\n\nwhen I receive [next level v]\nchange x by (1000)\ncreate clone of (_myself_ v)\nnext costume\nrepeat (45)\n    change x by (-10.3)\nend\ngo to x: (0) y: (0)\n\nwhen I start as a clone\ngo to x: (0) y: (0)\nrepeat (45)\n    change x by (-10.3)\nend\ndelete this clone\n\nwhen I receive [start v]\ngo to [front v] layer\nshow\nset [level v] to [1]\nswitch costume to (level)\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\n@danger\n\nwhen I receive [next level v]\nchange x by (1000)\ncreate clone of (_myself_ v)\nnext costume\nrepeat (45)\n    change x by (-10.3)\nend\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nshow\ngo to x: (0) y: (0)\nrepeat (45)\n    change x by (-10.3)\nend\ndelete this clone\n\nwhen I receive [start v]\nshow\nset [level v] to [1]\nswitch costume to (level)\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\n@Others\n\nwhen I receive [next level v]\nchange x by (1000)\ncreate clone of (_myself_ v)\nnext costume\nrepeat (45)\n    change x by (-10.3)\nend\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nshow\ngo to x: (0) y: (0)\nrepeat (45)\n    change x by (-10.3)\nend\ndelete this clone\n\nwhen I receive [start v]\nshow\nset [level v] to [1]\nswitch costume to (level)\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\n@Tramps\n\nwhen I receive [next level v]\nchange x by (1000)\ncreate clone of (_myself_ v)\nnext costume\nrepeat (45)\n    change x by (-10.3)\nend\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nshow\ngo to x: (0) y: (0)\nrepeat (45)\n    change x by (-10.3)\nend\ndelete this clone\n\nwhen I receive [start v]\nshow\nset [level v] to [1]\nswitch costume to (level)\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\n@Now playing\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\nend\n\nwhen I receive [start v]\nhide\nforever\n    switch costume to (the calling v)\n    show\n    wait (1.5) seconds\n    hide\n    play sound [TheFatRat - The Calling \(feat. Laura Brehm\) v] until done\n    switch costume to (fly away v)\n    show\n    wait (1.5) seconds\n    hide\n    play sound [TheFatRat - Fly Away \(feat. Anjulie\) v] until done\n    switch costume to (mayday  v)\n    show\n    wait (1.5) seconds\n    hide\n    play sound [TheFatRat - MAYDAY \(feat. Laura Brehm\) v] until done\n    switch costume to (close to the sun v)\n    show\n    wait (1.5) seconds\n    hide\n    play sound [TheFatRat & Anjulie - Close To The Sun v] until done\nend\n\n@Clouds\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (10)\ngo to [back v] layer\nset rotation style [left-right v]\nset y to (pick random (-300) to (300))\nswitch costume to (pick random (1) to (4))\nif <<(costume [name v]) = [1]> or <(costume [name v]) = [2]>> then\n    point in direction (pick random (-90) to (90))\n    set size to (pick random (25) to (50)) %\n    if <[5] < (pick random (1) to (10))> then\n        set x to (231)\n        glide (pick random (1) to (2)) secs to x: (-249) y: (y position)\n    else\n        set x to (-249)\n        glide (pick random (1) to (2)) secs to x: (231) y: (y position)\n    end\nelse\n    if <(costume [number v]) = [3]> then\n        point in direction (-90)\n        set size to (pick random (45) to (60)) %\n        Point [-90] and glide (pick random (1) to (3)) secs\n    end\n    if <(costume [number v]) = [4]> then\n        point in direction (90)\n        set size to (pick random (45) to (60)) %\n        Point [90] and glide (pick random (1) to (3)) secs\n    end\nend\ndelete this clone\n\ndefine Point (degrees) and glide (secs) secs\npoint in direction (degrees)\nif <(degrees) = [90]> then\n    set x to (-249)\n    glide (secs) secs to x: (231) y: (y position)\nend\nif <(degrees) = [-90]> then\n    set x to (231)\n    glide (secs) secs to x: (-249) y: (y position)\nend\n\nwhen I receive [start v]\nset size to (100) %\nhide\nset rotation style [left-right v]\nforever\n    create clone of (_myself_ v)\n    wait (pick random (0) to (1)) seconds\nend\n\n@Thumbnail\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\ngo to [front v] layer\ngo to x: (0) y: (0)\nset volume to (100) %\n\n