Adventurer - A Scrolling platformer [Moblie Friendly]

Instructions: Warning: This might be a hard platformer.\n\nUse arrow keys to move! Love, Favorite, and Follow for more content. I worked hard on this.\n\nI am doing a follower race...\nLet's get to 1000 followers for a special project!! 

@Stage\n\nwhen I receive [intro done v]\nswitch backdrop to (backdrop2 v)\nwait (2.1) seconds\nswitch backdrop to (backdrop3 v)\nwait (.9) seconds\nswitch backdrop to (backdrop1 v)\nbroadcast (Loading Done v) and wait\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen [m v] key pressed\nshow variable [mouse v]\nset [mouse v] to (join ((mouse x) + (SCROLL X)) (join [,] ((mouse y) + (SCROLL Y))))\nwait (2) seconds\nhide variable [mouse v]\n\n@Sprite1\n\n@Sprite2\n\nwhen flag clicked\nshow\ngo to x: (26) y: (-48)\nset [ghost v] effect to (100)\n\nwhen I receive [logo done v]\ngo to x: (48) y: (-71)\nset size to (100) %\nset [ghost v] effect to (100)\ngo to [front v] layer\nswitch costume to (logo v)\nrepeat (50)\n    wait (0.01) seconds\n    change [ghost v] effect by (-2)\nend\nwait (6) seconds\nbroadcast (Intro Done v)\n\nwhen I receive [intro done v]\nhide\n\n@Player\n\nwhen flag clicked\nwait (14) seconds\nforever\n    play sound [Mystery v] until done\nend\n\nwhen I receive [intro done v]\nstop all sounds\n\nwhen flag clicked\nshow\ngo to [back v] layer\nbroadcast (Green Flag v) and wait\nbroadcast (Play Game v)\n\nwhen I receive [loading done v]\nset [level v] to [1]\nforever\n    broadcast (Reset v) and wait\n    broadcast (Setup v) and wait\n    Game On\n    repeat until <(EXIT) > []>\n        Tick\n        broadcast (Tick v) and wait\n    end\n    if <(EXIT) = [win]> then\n        Game - Win\n    else\n        Game - Die\n    end\nend\n\nwhen I receive [loading done v]\nreset timer\nshow\ngo to [front v] layer\n\ndefine Game On\nset size to (13) %\nset [in air v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nset [sy v] to [0]\nset [exit v] to []\nclear graphic effects\nshow\n\ndefine Tick\nif <<<(mouse x) < ((x position) - (10))> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n    switch costume to (left v)\n    Change Player x by [-8]\nend\nif <<<(mouse x) > ((x position) + (10))> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n    switch costume to (right v)\n    Change Player x by [8]\nend\nif <<<(mouse y) > ((y position) + (10))> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n    if <(in air) < [4]> then\n        set [sy v] to [16]\n    end\nend\nchange [sy v] by (-2)\nChange Player y by (sy)\nTest - Die\nset [scroll x v] to (x)\nPosition\nif <(y) < [-180]> then\n    set [exit v] to [die]\nend\n\ndefine Change Player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <not <touching (platforms v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\n\ndefine Position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine Change Player x by (sx)\nchange [x v] by (sx)\nPosition\nif <touching (platforms v)?> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <touching (platforms v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    repeat until <not <touching (platforms v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\nend\n\ndefine Game - Die\nset [exit v] to []\nrepeat (5)\n    hide\n    wait (0.1) seconds\n    show\n    wait (0.1) seconds\nend\nhide\nwait (0.5) seconds\n\ndefine Test - Die\nif <touching (danger v)?> then\n    set [exit v] to [die]\nend\n\nwhen I receive [intro done v]\nhide\n\nwhen flag clicked\nset rotation style [left-right v]\nset size to (13) %\nhide\nstart sound [Cradles v]\n\ndefine Game - Win\nrepeat (50)\n    point towards (exit v)\n    turn right (65) degrees\n    move ((distance to [exit v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (2)\nend\nhide\nchange [level v] by (1)\nwait (1) seconds\n\nwhen flag clicked\nreset timer\n\n@Platforms\n\nwhen I receive [loading done v]\ngo to [front v] layer\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide variable [time v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [550] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone at x: [550] y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone at x: [700] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n                Clone at x: [550] y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5 1 v)\n                    Clone at x: [550] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (end v)\n                        set [time v] to (timer)\n                        show variable [time v]\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [green flag v]\nhide\n\nwhen flag clicked\nset [time v] to [0]\ngo to [back v] layer\n\n@Collectibles\n\nwhen I receive [intro done v]\nwait (2) seconds\ngo to [front v] layer\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (player v)?> then\n    change [collected v] by (1)\n    if <(COLLECTED) = (COLLECTED MAX)> then\n        broadcast (Open Portal v)\n    end\n    delete this clone\nend\n\nwhen I receive [setup v]\nshow variable [collected max v]\nshow variable [collected v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [collected v] to [0]\nset [collected max v] to [-1]\nswitch costume to (level 1 1 v)\nif <(LEVEL) = [1]> then\n    Clone at x: [102] y: [-17]\n    Clone at x: [264] y: [7]\n    Clone at x: [442] y: [62]\n    Clone at x: [565] y: [62]\n    Clone at x: [691] y: [62]\n    Clone at x: [-999999] y: [-99999999]\nelse\n    if <(LEVEL) = [2]> then\n        Clone at x: [-190] y: [10]\n        Clone at x: [-62] y: [41]\n        Clone at x: [123] y: [92]\n        Clone at x: [445] y: [20]\n        Clone at x: [-999999] y: [-99999999]\n    else\n        if <(LEVEL) = [3]> then\n            Clone at x: [-228] y: [13]\n            Clone at x: [-130] y: [13]\n            Clone at x: [107] y: [13]\n            Clone at x: [220] y: [13]\n            Clone at x: [-999999] y: [-99999999]\n        else\n            if <(LEVEL) = [4]> then\n                Clone at x: [-207] y: [-58]\n                Clone at x: [-107] y: [-58]\n                Clone at x: [-7] y: [-58]\n                Clone at x: [193] y: [-58]\n                Clone at x: [999999] y: [9999999]\n            else\n                if <(LEVEL) = [5]> then\n                    Clone at x: [-113] y: [32]\n                    Clone at x: [-22] y: [77]\n                    Clone at x: [75] y: [118]\n                    Clone at x: [583] y: [117]\n                    Clone at x: [507] y: [117]\n                    Clone at x: [999999] y: [9999999]\n                else\n                    if <(LEVEL) = [6]> then\n                        Clone at x: [999999] y: [9999999]\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\nchange [collected max v] by (1)\n\nwhen I receive [green flag v]\nhide variable [collected max v]\nhide variable [collected v]\nhide\n\nwhen flag clicked\nhide variable [mouse v]\ngo to [back v] layer\n\n@Danger\n\nwhen I receive [loading done v]\ngo to [front v] layer\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [550] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone at x: [550] y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone at x: [550] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n                Clone at x: [550] y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5 1 v)\n                    Clone at x: [550] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (level 6 1 v)\n                        Clone at x: [99999] y: [999999999]\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [green flag v]\nhide\n\nwhen flag clicked\nshow variable [time v]\ngo to [back v] layer\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Exit\n\nwhen I receive [intro done v]\nwait (2) seconds\ngo to [front v] layer\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<(costume [name v]) = [Open]> and <touching (player v)?>> then\n    set [exit v] to [win]\nend\n\nwhen I receive [setup v]\nshow variable [collected v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [collected v] to [0]\nswitch costume to (closed v)\nif <(LEVEL) = [1]> then\n    Clone at x: [900] y: [62]\nelse\n    if <(LEVEL) = [2]> then\n        Clone at x: [830] y: [-10]\n    else\n        if <(LEVEL) = [3]> then\n            Clone at x: [310] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                Clone at x: [851] y: [11]\n            else\n                if <(LEVEL) = [5]> then\n                    Clone at x: [879] y: [28]\n                else\n                    if <(LEVEL) = [6]> then\n                        Clone at x: [9999999] y: [999999999]\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\n\nwhen I receive [green flag v]\nhide variable [collected v]\nhide\n\nwhen flag clicked\nhide variable [mouse v]\ngo to [back v] layer\n\nwhen I receive [open portal v]\nswitch costume to (open v)\n\nhide\n\n@Sprite3\n\nwhen I start as a clone\ngo to x: (100) y: (80)\nset size to (50) %\nset [ghost v] effect to (100)\ngo to [front v] layer\nswitch costume to (logo v)\nrepeat (50)\n    change [ghost v] effect by (-2)\n    wait (.01) seconds\nend\nbroadcast (Logo Done v)\n\nwhen I receive [intro done v]\nhide\n\nwhen flag clicked\nshow\ngo to x: (0) y: (1)\nswitch costume to (backround v)\nset size to (100) %\ncreate clone of (_myself_ v)\n\n