Bubblegum Platformer

Instructions: {--------------------- The flag. (It's not an octogon.)\n\nRead the notes and credit.\n\nLove and Favorite this project, please.   <(^.^)>\n\nEver since I tried adding a new intro, it's been glitching.\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\n\n\n\n\n\n\n\n\n\n\nI have a record of 67.

@Stage\n\nwhen I receive [project v]\nwait (4) seconds\nset [time v] to [0]\nrepeat until <(backdrop [number v]) = [18]>\n    wait (1) seconds\n    change [time v] by (1)\nend\nhide variable [time v]\nswitch backdrop to (backdrop100 v)\n\n@B.G. Player\n\nwhen I receive [project v]\nwait (4) seconds\ngo to x: (-217) y: (-20)\nswitch costume to (costume1 v)\nswitch backdrop to (backdrop1 v)\nshow\nhide variable [y v]\nhide variable [x v]\nset [y v] to [0]\nset [x v] to [0]\nforever\n    change [y v] by (-1)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n        if <(backdrop [name v]) = [backdrop18]> then\n            switch costume to (costume4 v)\n            show variable [time v]\n            broadcast (time v)\n            if <(☁ Cloud Record) > (time)> then\n                set [☁ cloud record v] to (time)\n            end\n            hide\n            stop [this script v]\n        end\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n        if <(backdrop [name v]) = [backdrop18]> then\n            switch costume to (costume5 v)\n        end\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <<touching color (#000000)?> or <<touching color (#009933)?> or <touching color (#663b00)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#000000)?> or <<touching color (#009933)?> or <touching color (#663b00)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#000000)?> or <<touching color (#009933)?> or <touching color (#663b00)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#000000)?> or <<touching color (#009933)?> or <touching color (#663b00)?>>> then\n        change y by (1)\n    end\n    if <<touching color (#000000)?> or <<touching color (#009933)?> or <touching color (#663b00)?>>> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [y v] to [17]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <<touching color (#000000)?> or <<touching color (#009933)?> or <touching color (#663b00)?>>> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <<touching color (#000000)?> or <<touching color (#009933)?> or <touching color (#663b00)?>>>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <<touching color (#ff0000)?> or <touching color (#792da1)?>> then\n        go to x: (-217) y: (-20)\n    end\n    if <(x position) > [222]> then\n        switch backdrop to (next backdrop v)\n        go to x: (-217) y: (-20)\n    end\n    if <<(backdrop [name v]) = [backdrop11]> or <(backdrop [name v]) = [backdrop19]>> then\n        switch costume to (costume2 v)\n    end\n    if <(backdrop [name v]) = [backdrop17]> then\n        switch costume to (costume3 v)\n    end\nend\n\nwhen I receive [project v]\nstop all sounds\nset volume to (100) %\nhide variable [time v]\nstart sound [triumph v]\nswitch backdrop to (backdrop1 v)\nwait (2) seconds\nswitch backdrop to (backdrop20 v)\nwait (2) seconds\nstop all sounds\nswitch backdrop to (backdrop19 v)\nforever\n    play sound [18.dj-nate-theory-of-everything-2.mp3 v] until done\nend\n\nwhen I receive [project v]\nset rotation style [left-right v]\npoint in direction (90)\n\nwhen I receive [project v]\nforever\n    if <touching color (#ff9400)?> then\n        switch backdrop to (next backdrop v)\n    end\nend\n\nwhen [right arrow v] key pressed\nswitch costume to (ball-c v)\n\nwhen [left arrow v] key pressed\nswitch costume to (ball-c2 v)\n\nwhen flag clicked\nhide\n\n@Time\n\nwhen I receive [time v]\ngo to x: (-17) y: (5)\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [backdrop18]> then\n        show\n        show variable [☁ cloud record v]\n        show variable [time v]\n        if <(Cloud Record) > (time)> then\n            set [☁ cloud record v] to (time)\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide variable [☁ cloud record v]\nhide variable [time v]\nhide\n\n@B.G.S. 2000\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [backdrop8]> then\n        repeat until <not <(backdrop [name v]) = [backdrop8]>>\n            show\n            next costume\n            wait (0.4) seconds\n        end\n    else\n        hide\n    end\nend\n\n@Be Smart\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [backdrop11]> then\n        repeat until <not <(backdrop [name v]) = [backdrop11]>>\n            show\n            go to x: (41) y: (-20)\n            glide (2) secs to x: (38) y: (129)\n            glide (2) secs to x: (41) y: (-20)\n        end\n    else\n        hide\n    end\nend\n\n@M.P.\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [backdrop13]> then\n        repeat until <not <(backdrop [name v]) = [backdrop13]>>\n            show\n            go to x: (47) y: (-27)\n            glide (3) secs to x: (341) y: (128)\n            glide (3) secs to x: (47) y: (-27)\n        end\n    else\n        hide\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\nrepeat (10)\n    go to [front v] layer\nend\n\n@Intro\n\nwhen flag clicked\ngo to x: (0) y: (10)\nset size to (100) %\nerase all\nshow\nswitch costume to (back v)\nstamp\nshow\nswitch costume to (intro-2 v)\nset y to (10)\nchange x by (-240)\nrepeat (12)\n    change x by (20)\nend\nstamp\nswitch costume to (intro-3 v)\nchange x by (-240)\nrepeat (12)\n    change x by (20)\nend\nstamp\nswitch costume to (intro-4 v)\nchange x by (-240)\nrepeat (12)\n    change x by (20)\nend\nstamp\nswitch costume to (intro-5 v)\nchange x by (-240)\nrepeat (12)\n    change x by (20)\nend\nstamp\nswitch costume to (intro-6 v)\nchange x by (-240)\nrepeat (12)\n    change x by (20)\nend\nstamp\nswitch costume to (intro-7 v)\nchange x by (-240)\nrepeat (12)\n    change x by (20)\nend\nstamp\nswitch costume to (intro-8 v)\nchange x by (-240)\nrepeat (12)\n    change x by (20)\nend\nstamp\nswitch costume to (full intro v)\nstamp\nhide\nswitch costume to (name ribbon-1 v)\nstamp\nrepeat (4)\n    next costume\n    stamp\n    wait (0.05) seconds\nend\n\nwhen flag clicked\nset volume to (100) %\nplay sound [Test Part 1 v] until done\nstart sound [Test Part 2 v]\ngo to x: (0) y: (0)\nset size to (0) %\nshow\nswitch costume to (love, favorite, follow, comment v)\nsmooth size to size: (100) wtih speed: (10)\nwait (2.5) seconds\nrepeat until <(round (volume)) = [0]>\n    change volume by (-1)\nend\nbroadcast (Project v)\nerase all\nhide\n\ndefine None\nrepeat until <(round (size)) = (size)>\n    change size by (((size) - (size)) / (speed))\nend\n\n