Beehive || Scrolling Platformer

Instructions: Back and Forth-A Mobile Platformer\n----------------------------------------------------------\nUse WASD or Arrow keys or Mobile to move.\nGo back and forth to get to the next level.\nSpikes hurt\n10 levels to enjoy.

@Stage\n\n@Dodge\n\nwhen flag clicked\nset size to (0) %\nforever\n    repeat until <[600] = ([floor v] of (size) )>\n        go to [front v] layer\n        change size by (((600) - (size)) / (4))\n    end\n    if <touching (mouse-pointer v)?> then\n        repeat until <[1000] = ([floor v] of (size) )>\n            go to [front v] layer\n            change size by (((600) - (size)) / (2))\n        end\n        wait until <not <touching (mouse-pointer v)?>>\n        repeat until <[600] = ([floor v] of (size) )>\n            go to [front v] layer\n            change size by (((500) - (size)) / (3))\n        end\n    end\nend\n\nwhen flag clicked\nshow\ngo to x: (0) y: (119)\nforever\n    point in direction (((5) * ([cos v] of ((timer) * (80)) )) + (90))\nend\n\nwhen flag clicked\nforever\n    play sound [Music  v] until done\nend\n\nwhen flag clicked\nshow\ngo to x: (0) y: (119)\npoint in direction (((5) * ([cos v] of ((timer) * (80)) )) + (90))\nforever\n\nset size to (100) %\n\nwhen I receive [animation v]\nhide\ndelete this clone\n\nhide\n\n@Clouds\n\nwhen I start as a clone\nshow\ngo [backward v] (pick random (10) to (20)) layers\ngo to x: (190) y: (pick random (-10) to (190))\nset [ghost v] effect to (pick random (50) to (50))\nset size to (pick random (100) to (300)) %\nset [cloud speed v] to ((size) / (200))\nrepeat until <[-240] > (x position)>\n    change x by ((Cloud Speed) / (-1))\nend\ndelete this clone\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\n\nwhen I receive [platforms v]\nhide\nforever\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\n\nwhen I start as a clone\nshow\ngo [backward v] (pick random (10) to (20)) layers\ngo to x: (190) y: (pick random (-10) to (190))\nset [ghost v] effect to (pick random (50) to (50))\nset size to (pick random (100) to (300)) %\nset [cloud speed v] to ((size) / (200))\nrepeat until <[-240] > (x position)>\n    change x by ((Cloud Speed) / (-1))\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    go to [front v] layer\nend\n\n@Settings\n\nwhen this sprite clicked\n\nwhen flag clicked\nforever\n    show\n    go [forward v] (1) layers\n    switch costume to (1 v)\n    go to x: (-174) y: (-135)\n    set size to (160) %\nend\n\ngo to [front v] layer\n\n@Clickbait\n\nwhen flag clicked\nswitch costume to (1 v)\ngo [forward v] (1) layers\npoint in direction (90)\nshow\ngo to x: (-14) y: (-24)\nset size to (0) %\nforever\n    repeat until <[1000] = ([floor v] of (size) )>\n        go to [front v] layer\n        change size by (((1000) - (size)) / (4))\n    end\n    if <touching (mouse-pointer v)?> then\n        repeat until <[1300] = ([floor v] of (size) )>\n            go to [front v] layer\n            change size by (((1300) - (size)) / (1.5))\n        end\n        wait until <not <touching (mouse-pointer v)?>>\n        repeat until <[1000] = ([floor v] of (size) )>\n            go to [front v] layer\n            change size by (((1000) - (size)) / (3))\n        end\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Animation v)\n\nwhen this sprite clicked\nforever\n    hide\n    delete this clone\nend\n\nwhen flag clicked\nforever\n    if <[1] < (Level)> then\n        stop [this script v]\n    end\nend\n\nhide\n\n@restart button\n\nwhen this sprite clicked\nbroadcast (restart v)\n\nwhen flag clicked\n\nwhen I receive [animation v]\nshow\ngo to x: (-220) y: (160)\n\nwhen flag clicked\nhide\n\n@skip button\n\nwhen this sprite clicked\nbroadcast (next level v)\n\nwhen I receive [animation v]\nshow\ngo to x: (-220) y: (120)\n\nwhen flag clicked\nhide\n\n@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\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@level\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [animation v]\nshow\nswitch costume to (costume1 v)\n\nwhen flag clicked\nhide\n\n@player\n\ndefine Physics\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n    switch costume to (costume1 v)\n    change [xmovement v] by (2)\nelse\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        switch costume to (costume2 v)\n        change [xmovement v] by (-2)\n    end\nend\nset [xmovement v] to ((Xmovement) * ((0.78) - (Friction)))\nchange x by (Xmovement)\nchange [yv v] by (-1.2)\nif <touching color (#00c0ff)?> then\n    change y by (1)\nend\nif <touching color (#00c0ff)?> then\n    change y by (1)\nend\nif <touching color (#00c0ff)?> then\n    change y by (1)\nend\nif <touching color (#00c0ff)?> then\n    change y by (1)\nend\nif <touching color (#00c0ff)?> then\n    change x by ((Xmovement) * (-1))\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> then\n        set [yv v] to [15]\n        if <(Xmovement) > [0]> then\n            set [xmovement v] to [-7]\n        else\n            set [xmovement v] to [7]\n        end\n    else\n        set [xmovement v] to [0]\n    end\nend\nchange y by (Yv)\nif <touching color (#00c0ff)?> then\n    change y by ((Yv) - ((Yv) * (2)))\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 <(y position) < (mouse y)>>> and <touching color (#2fff00)?>> then\n    set [yv v] to [15]\nend\nif <(x position) > [239]> then\n    broadcast (next level v)\nend\nif <(y position) < [-179]> then\n    go to x: (-198) y: (-45)\nend\nif <touching color (#00fdff)?> then\n    set [yv v] to [26]\nend\nif <touching color (#0083ff)?> then\n    go to x: (-198) y: (-45)\nend\n\nwhen I receive [next level v]\nset [yv v] to [0]\ngo to x: (-198) y: (-45)\n\npoint in direction (-90)\n\nwhen I receive [animation v]\nswitch costume to (costume1 v)\npoint in direction (90)\nshow\ngo to [front v] layer\nset [yv v] to [0]\ngo to x: (-198) y: (-45)\nset size to (15) %\nforever\n    Physics\nend\n\nwhen flag clicked\nshow\ngo to x: (-5) y: (-86)\n\nwhen I receive [backward v]\nchange [costume v] by (-1)\nswitch costume to <(costume) = [-1]>\nchange [color v] effect by (-25)\n\nwhen I receive [forward v]\nchange [costume v] by (1)\nnext costume\nchange [color v] effect by (25)\n\nwhen I receive [up v]\nchange y by (10)\nforever\nend\n\nwhen I receive [down v]\nchange y by (-10)\nforever\nend\n\nwhen I receive [left v]\nchange x by (-10)\nforever\nend\n\nwhen I receive [right v]\nchange x by (10)\nforever\nend\n\n@Thumbnail\n\nforever\n    show\n    go to [front v] layer\nend\n\nwhen flag clicked\nwait (0.1) seconds\nhide\n\n@backward\n\nwhen flag clicked\ngo to x: (-33) y: (-83)\nshow\ngo [forward v] (1) layers\nforever\n    go to [front v] layer\n    show\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (25)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (backward v)\n\n\n\n\n\nwhen I receive [animation v]\nforever\n    hide\nend\n\n@forward\n\nwhen flag clicked\ngo to x: (25) y: (-84)\nshow\ngo [forward v] (1) layers\nforever\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (25)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (forward v)\n\nwhen I receive [animation v]\nhide\n\n@Left\n\nwhen this sprite clicked\nbroadcast (Left v)\n\nwhen I receive [animation v]\nshow\n\nwhen flag clicked\nhide\n\n@Right\n\nwhen this sprite clicked\nbroadcast (Right v)\n\nwhen I receive [animation v]\nshow\n\nwhen flag clicked\nhide\n\n@Down\n\nwhen this sprite clicked\nbroadcast (Down v)\n\nwhen I receive [animation v]\nshow\n\nwhen flag clicked\nhide\n\n@Up\n\nwhen this sprite clicked\nbroadcast (Up v)\n\nwhen I receive [animation v]\nshow\n\nwhen flag clicked\nhide\n\n