Gray ll - A Platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [Inspiring Emotional Music - Melody Of My Dreams \(Copyright Free Music\) v] until done\n    wait (1) seconds\n    start sound [Inspiring Indie Background Music v]\nend\n\n@Player1\n\nwhen I receive [estop v]\nshow\n\nwhen I receive [next level v]\ngo to x: (-200) y: (101)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\npoint in direction (90)\nset [xvel v] to [0]\nset [yvel v] to [0]\nforever\n    set rotation style [left-right v]\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <key (left arrow v) pressed?>> then\n        change [xv v] by (-1)\n        switch costume to (costume2 v)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> then\n        change [xv v] by (1)\n        switch costume to (costume1 v)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<touching color (#2a2e45)?> or <touching color (#8d9ae7)?>> then\n        change y by (1)\n        if <<touching color (#2a2e45)?> or <touching color (#8d9ae7)?>> then\n            change y by (1)\n            if <<touching color (#2a2e45)?> or <touching color (#8d9ae7)?>> then\n                change y by (1)\n                if <<touching color (#2a2e45)?> or <touching color (#8d9ae7)?>> then\n                    change y by (1)\n                    if <<touching color (#2a2e45)?> or <touching color (#8d9ae7)?>> then\n                        change y by (1)\n                        if <<touching color (#2a2e45)?> or <touching color (#8d9ae7)?>> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-7]\n                                else\n                                    set [xv v] to [7]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <<touching color (#2a2e45)?> or <touching color (#8d9ae7)?>> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <<touching color (#2a2e45)?> or <touching color (#8d9ae7)?>> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    hide variable [xv v]\n    if <(x position) > [230]> then\n        broadcast (next level v)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-200) y: (101)\n        set [ghost v] effect to (0)\n    end\n    if <(y position) < [-170]> then\n        go to x: (-200) y: (101)\n    end\n    if <touching color (#b25151)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-200) y: ()\n        set [ghost v] effect to (0)\n        start sound [Oopsy.. v]\n    end\n    if <touching color (#a68383)?> then\n        set [yv v] to [20]\n    end\n    if <touching color (#2d5c5c)?> then\n        set [xv v] to [21]\n    end\nend\n\nwhen I receive [play on v]\ngo to x: (-200) y: (101)\nshow\n\n@levels\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    if <(costume [name v]) = [end]> then\n        broadcast (estop v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [play on v]\nwait (1) seconds\nshow\n\nwhen flag clicked\nif <(costume [number v]) = [8]> then\n    broadcast (Shadow v)\nend\n\n@intro\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (-240) y: (0)\nset size to (100) %\npoint in direction (90)\nshow\nglide (0.5) secs to x: (0) y: (0)\nwait (1) seconds\nrepeat (20)\n    turn right (15) degrees\n    change size by (-5)\nend\nhide\nbroadcast (play on v)\n\n@intro backdrop\n\nwhen flag clicked\nshow\n\nwhen I receive [play on v]\nhide\n\n@thumbnail2\n\nwhen flag clicked\nbroadcast (go v)\nhide\nwait (1) seconds\nshow\nset [brightness v] effect to (-100)\nset [ghost v] effect to (0)\nrepeat (50)\n    change [brightness v] effect by (2)\nend\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nwait (1) seconds\nrepeat (50)\n    change [brightness v] effect by (2)\nend\nwait (6) seconds\nbroadcast (stop v)\n\n@skip\n\nwhen this sprite clicked\nbroadcast (next level v)\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (50) layers\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-5)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [estop v]\nhide\n\n
Arrow Keys to move.\nCLICK THE FLAG TWICE!!!!!\nPART 1 - https://scratch.mit.edu/projects/396127671\nPART 3 - https://scratch.mit.edu/projects/398187082/\nCredit to @hammieswoopdog for helping!\nGo to https://scratch.mit.edu/studios/26665891/projects/ to see all my projects!!!