ESCAPE ROOM - A HARD PLATFORMER

Instructions: HELP ME WIN...XD\n\nTHIS PROJECT GOT HIT! KINDA?\n124 views in 24 hours? kinda low?\n\nWoke up with 589 messages :o\n\nPART 2 AT 50 LIKES... YIKES!

@Stage\n\n@Player\n\nwhen flag clicked\nbroadcast (Run the platformer v)\nhide\n\ndefine Reset the setup\nset size to (80) %\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nset [idk y v] to [0]\ngo to x: (-200) y: (35)\nclear graphic effects\npoint in direction (90)\nshow\n\ndefine death\nset [idk y v] to [1]\nrepeat (25)\n    change size by (-5)\n    change [ghost v] effect by (5)\nend\nReset the setup\n\nwhen I receive [run the platformer v]\nset [level v] to [1]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen I receive [run the platformer v]\nforever\n    if <<[235] < (x position)> and <(idk y) = [0]>> then\n        broadcast (Next level please? v)\n        change [level v] by (1)\n        Reset the setup\n    end\nend\n\nwhen I receive [run the platformer v]\nset size to (80) %\nset [idk y v] to [0]\nset [level v] to [1]\nReset the setup\nforever\n    go to [front v] layer\n    if <<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> and <(idk y) = [0]>> then\n        change [x velocity v] by (2)\n    end\n    if <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> and <(idk y) = [0]>> then\n        change [x velocity v] by (-2)\n    end\n    set [x velocity v] to ((X velocity) * (0.8))\n    change x by (X velocity)\n    if <touching (hitbox v)?> then\n        change y by (2)\n        if <touching (hitbox v)?> then\n            change y by (2)\n            if <touching (hitbox v)?> then\n                change y by (2)\n                if <touching (hitbox v)?> then\n                    change y by (2)\n                    if <touching (hitbox v)?> then\n                        change y by (2)\n                        if <touching (hitbox v)?> then\n                            change x by ((X velocity) * (-2))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>>> then\n                                if <(X velocity) > [0]> then\n                                    set [x velocity v] to [-5]\n                                else\n                                    set [x velocity v] to [5]\n                                end\n                                set [y velocity v] to [13]\n                            else\n                                set [x velocity v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y velocity v] by (-0.8)\n    change y by (Y velocity)\n    if <touching (hitbox v)?> then\n        change y by ((Y velocity) * (-1))\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <touching (hitbox v)?> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>>> then\n            set [y velocity v] to [12]\n        end\n    end\n    change y by (1)\n    if <<touching (danger v)?> or <touching (acid v)?>> then\n        death\n    end\n    if <(y position) < [-180]> then\n        death\n    end\nend\n\nwhen I receive [run the platformer v]\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        switch costume to (right v)\n    end\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 (left v)\n    end\n    if <<<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>>> then\n        switch costume to (up-left v)\n    end\n    if <<<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>>> then\n        switch costume to (up-right v)\n    end\n    if <not <<key (right arrow v) pressed?> or <<key (left arrow v) pressed?> or <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<key (a v) pressed?> or <<key (d v) pressed?> or <<<mouse down?> and <(mouse x) > (x position)>> or <<mouse down?> and <(mouse x) < (x position)>>>>>>>>>> then\n        switch costume to (default v)\n        set size to (80) %\n    end\n    if <<key (down arrow v) pressed?> or <<key (s v) pressed?> or <<mouse down?> and <(mouse y) < (y position)>>>> then\n        switch costume to (default v)\n        set size to (40) %\n    end\nend\n\n@HITBOX\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Danger\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@ACID\n\nwhen flag clicked\nforever\n    switch costume to (Level)\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    set y to (([cos v] of ((timer) * (150)) ) * (7))\nend\n\n@Glow\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    go to (player v)\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.3)\nif <not <([x position v] of [alertsui v]) = [null]>> then\n    switch costume to (tb v)\n    set [ghost v] effect to (100)\n    show\n    go to [front v] layer\n    repeat (10)\n        go to [front v] layer\n        change [ghost v] effect by (-10)\n    end\nend\n\n@NEW EFFECT\n\nwhen flag clicked\nhide\ngo to [front v] layer\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nforever\n    show\n    go to x: (240) y: (pick random (-180) to (180))\n    set [ghost v] effect to (pick random (40) to (80))\n    set size to (pick random (50) to (200)) %\n    glide (pick random (4) to (5)) secs to x: (-235) y: (y position)\n    delete this clone\nend\n\n