MYSTERIOUS | A PLATFORMER
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nwait until <([costume # v] of [platforms v]) = [8]>\nswitch backdrop to (backdrop2 v)\nstop all sounds\nstop [other scripts in sprite v]\nwait (1) seconds\nforever\n    play sound [Disfigure - Blank.mp3 v] until done\nend\n\nwhen flag clicked\nforever\n    play sound [Mysterious Sleeper v] until done\nend\n\n@Platforms\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (1) layers\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nwait (1.5) seconds\nnext costume\n\n@Player\n\nwhen flag clicked\nforever\n    show\nend\n\nwhen flag clicked\nforever\n    if <touching color (#66c0ff)?> then\n        set [ghost v] effect to (50)\n        if <key (up arrow v) pressed?> then\n            set [y v] to [5]\n        else\n            if <key (down arrow v) pressed?> then\n                set [y v] to [-5]\n            else\n                set [y v] to [-1]\n            end\n        end\n    end\nend\n\nwhen I receive [next level v]\nwait (2) seconds\ngo to x: (-204) y: (-120)\n\nwhen I start as a clone\nset [ghost v] effect to (75)\nset [turn v] to (pick random (-3) to (5))\nset size to (pick random (35) to (50)) %\ngo [backward v] (50) layers\nshow\nif <(yvelocity) = [0]> then\n    set [yvelocity v] to [20]\nend\nrepeat (50)\n    change y by (yvelocity)\n    change [yvelocity v] by (-1)\n    turn right (turn) degrees\n    change [ghost v] effect by (2)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <not <touching color (#66c0ff)?>> then\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ffdc66)?> then\n        change x by (25)\n    end\nend\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\nwait (0.1) seconds\nshow\nset [ghost v] effect to (0)\npoint in direction (90)\nswitch costume to (player v)\ngo to [front v] layer\ngo [backward v] (1) layers\nshow\ngo to x: (-204) y: (-120)\nforever\n    change [y v] by (-0.5)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (platforms v)?> then\n        change y by (1)\n        if <touching (platforms v)?> then\n            change y by (1)\n            if <touching (platforms v)?> then\n                change y by (1)\n                if <touching (platforms v)?> then\n                    change y by (1)\n                    if <touching (platforms v)?> then\n                        change y by (1)\n                        if <touching (platforms v)?> then\n                            change y by (1)\n                            if <touching (platforms v)?> then\n                                change y by (-6)\n                                if <key (up arrow v) pressed?> then\n                                    set [y v] to [10]\n                                    change x by ((x) * (-1))\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                else\n                                    change x by ((x) * (-1))\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching (platforms v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching (platforms v)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\n    if <key (down arrow v) pressed?> then\n        switch costume to (player2 v)\n    else\n        switch costume to (player v)\n    end\nend\n\nwhen flag clicked\nforever\n    wait until <(x position) > [235]>\n    broadcast (Next level v)\n    wait until <not <(x position) > [235]>>\nend\n\nwhen flag clicked\nforever\n    if <touching (danger v)?> then\n        create clone of (_myself_ v)\n        go to x: (-204) y: (-120)\n        point in direction (90)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (bouncy v)?> then\n        set [y v] to [15]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#00ff55)?> then\n        set [y v] to [-15]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (traps v)?> then\n        create clone of (_myself_ v)\n        go to x: (-204) y: (-120)\n        point in direction (90)\n    end\nend\n\nwhen flag clicked\nforever\n    wait until <<key (s v) pressed?> or <key (r v) pressed?>>\n    if <key (s v) pressed?> then\n        broadcast (Next level v)\n    end\n    if <key (r v) pressed?> then\n        go to x: (-204) y: (-120)\n    end\n    wait until <not <<key (s v) pressed?> or <key (r v) pressed?>>>\nend\n\n@Danger\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (2) layers\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nwait (1.5) seconds\nnext costume\n\n@Text\n\nwhen flag clicked\nswitch costume to (costume1 v)\nrepeat (5)\n    go to [front v] layer\nend\n\nwhen I receive [next level v]\nwait (1.5) seconds\nnext costume\n\n@Trail\n\nwhen flag clicked\nhide\nforever\n    go to (player v)\n    create clone of (_myself_ v)\n    switch costume to ([costume # v] of [player v])\nend\n\nwhen I start as a clone\nshow\nrepeat (10)\n    change [ghost v] effect by (7)\n    change size by (-1.25)\nend\ndelete this clone\n\n@Bouncy\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        glide (0.1) secs to x: (0) y: (-10)\n        glide (0.1) secs to x: (0) y: (15)\n        glide (0.1) secs to x: (0) y: (0)\n    end\nend\n\nwhen I receive [next level v]\nwait (1.5) seconds\nnext costume\n\n@Traps\n\nwhen flag clicked\nhide\nwait until <([costume # v] of [platforms v]) = [6]>\nset size to (75) %\nshow\ngo to x: (-25) y: (40)\ncreate clone of (_myself_ v)\nrepeat until <([costume # v] of [platforms v]) = [7]>\n    repeat (30)\n        change y by (-5)\n        turn right (12) degrees\n    end\n    repeat (30)\n        change y by (5)\n        turn right (12) degrees\n    end\nend\ngo to x: (-20) y: (-120)\nwait (1) seconds\nrepeat until <([costume # v] of [platforms v]) = [8]>\n    repeat (30)\n        change y by (6)\n        change x by (5)\n        turn right (12) degrees\n    end\n    repeat (30)\n        change y by (-6)\n        change x by (-5)\n        turn right (12) degrees\n    end\nend\nhide\n\nwhen I start as a clone\ngo to x: (130) y: (-120)\nrepeat until <([costume # v] of [platforms v]) = [7]>\n    repeat (30)\n        change y by (5)\n        turn right (12) degrees\n    end\n    repeat (30)\n        change y by (-5)\n        turn right (12) degrees\n    end\nend\ndelete this clone\n\n@Cover\n\nwhen flag clicked\nhide\ngo to x: (-469) y: (0)\n\nwhen I receive [next level v]\nrepeat (10)\n    go to [front v] layer\nend\nshow\nglide (2) secs to x: (469) y: (0)\nhide\ngo to x: (-469) y: (0)\n\n@Thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@Fog2\n\nwhen I start as a clone\nset [ghost v] effect to (80)\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (costume1 v)\nset [ghost v] effect to (70)\ngo to x: (0) y: (0)\nshow\ncreate clone of (_myself_ v)\nforever\n    go to [front v] layer\n    change x by (-1)\n    if <(x position) = [-475]> then\n        hide\n    end\nend\n\nwhen I start as a clone\nshow\nswitch costume to (costume1 v)\nset x to (475)\nforever\n    go to [front v] layer\n    change x by (-1)\n    if <(x position) = [0]> then\n        create clone of (_myself_ v)\n    end\n    if <(x position) = [-475]> then\n        delete this clone\n    end\nend\n\n