You're Pro! A platformer (Refactored)
@Stage\n\nwhen flag clicked\nstart sound [Legend \(ft v]\n\nwhen flag clicked\nclear graphic effects\nwait (2.5) seconds\nforever\n    repeat (10)\n        change [brightness v] effect by (5)\n    end\n    repeat (10)\n        change [brightness v] effect by (-5)\n    end\n    wait (1) seconds\nend\n\nwhen flag clicked\nforever\n    create clone of (player v)\nend\n\nwhen flag clicked\nswitch backdrop to (fondo2 v)\nforever\n    wait (0.5) seconds\n    next backdrop\nend\n\n@Image\n\nwhen flag clicked\ngo to [front v] layer\nshow\nset [ghost v] effect to (9999999999)\n\n@PISO\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nswitch costume to (line v)\nforever\n    if <touching (abajo v)?> then\n        set [piso v] to [1]\n    else\n        set [piso v] to [0]\n    end\nend\n\nif <(costume [number v]) > [1]> then\n\nwhen I receive [next v]\n\nwhen I receive [back v]\n\nwhen I receive [back v]\nswitch costume to ((costume [number v]) - (1))\n\n@Player\n\nwhen flag clicked\nset [level v] to [1]\nshow\npoint in direction (90)\nset rotation style [left-right v]\ngo to x: (-200) y: (0)\nset size to (30) %\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n    end\n    if <<key (up arrow v) pressed?> and <(piso) = [1]>> then\n        repeat (13)\n            change y by (10)\n            if <touching (piso v)?> then\n                change y by (-10)\n            end\n        end\n    end\n    if <not <(piso) = [1]>> then\n        gravedad\n    end\n    if <touching (trampolín v)?> then\n        repeat (23)\n            change y by (10)\n            if <touching (piso v)?> then\n                change y by (-10)\n            end\n        end\n    end\nend\n\nwhen I receive [next v]\ngo to x: (-200) y: (0)\n\nwhen [r v] key pressed\ngo to x: (-200) y: (0)\nwait (1) seconds\n\nwhen flag clicked\nforever\n    if <touching (death v)?> then\n        go to x: (-200) y: (0)\n    end\nend\n\nwhen I receive [para v]\nstop [other scripts in sprite v]\n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\n    if <key (right arrow v) pressed?> then\n        change x by (-10)\n    end\n    if <key (left arrow v) pressed?> then\n        change x by (10)\n    end\nend\ndelete this clone\n\ndefine gravedad\nchange y by (-6)\n\nwhen I receive [choca derecha v]\nchange x by (-10)\n\nwhen I receive [choca izquierda v]\nchange x by (10)\n\nwhen I receive [derecha v]\nchange x by (10)\n\nwhen I receive [izquierda v]\nchange x by (-10)\n\nwhen I receive [next v]\nrepeat (9)\n    go to x: (-217) y: (-20)\nend\nchange [level v] by (1)\ngo to x: (-217) y: (-20)\n\nif <(x position) > [200]> then\n    broadcast (Next v)\nend\n\n@Sensor (siguiente nivel)\n\nwhen flag clicked\nset [ghost v] effect to (99999999999)\nforever\n    if <touching (player v)?> then\n        broadcast (Next v)\n        wait (0.5) seconds\n    end\nend\n\n@Death\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [back v]\nswitch costume to ((costume [number v]) - (1))\n\n@Trampolín\n\nwhen flag clicked\nswitch costume to (disfraz1 v)\nforever\n    set size to (20) %\nend\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [back v]\nswitch costume to ((costume [number v]) - (1))\n\n@Objeto1\n\nwhen flag clicked\nhide\nwait (0.2) seconds\nwait until <(level) = [40]>\nstop all sounds\nbroadcast (para v)\ngo to x: (7) y: (-249)\nbroadcast (fondo n v)\nshow\nstart sound [Star Wars Music Theme v]\nrepeat (400)\n    change y by (1)\nend\nstop [all v]\n\n@Objeto3\n\nwhen flag clicked\nhide\n\nwhen I receive [fondo n v]\nshow\n\n@hitbox derecha\n\nwhen flag clicked\nset [ghost v] effect to (9999)\nforever\n    go to (player v)\n    if <<not <touching (piso v)?>> and <key (right arrow v) pressed?>> then\n        broadcast (derecha v)\n    end\nend\n\n@hitbox izquierda\n\nwhen flag clicked\nset [ghost v] effect to (9999)\nforever\n    go to (player v)\n    if <<not <touching (piso v)?>> and <key (left arrow v) pressed?>> then\n        broadcast (izquierda v)\n    end\nend\n\n@abajo\n\nwhen flag clicked\nset [ghost v] effect to (9999)\nforever\n    go to (player v)\nend\n\n@Objeto2\n\nwhen flag clicked\nhide\nrepeat (35)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to (random position v)\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (pick random (89) to (93))\nforever\n    repeat (10)\n        change [brightness v] effect by (5)\n    end\n    repeat (10)\n        change [brightness v] effect by (-5)\n    end\n    wait (1) seconds\nend\n\nwhen I start as a clone\nforever\n    glide (9) secs to (random position v)\nend\n\n
TODOS LOS NIVELES SON POSIBLES\njugá hasta que el marcador de nivel llegue a 40 y mirá que pasa\nte movés con las flechas\n\n