HOMEWORK A PLATFORMER
@Stage\n\n@Sprite1\n\nwhen flag clicked\ngo to [back v] layer\n\nwhen flag clicked\n\ngo to [front v] layer\n\n@Sprite2\n\nwhen flag clicked\n\nshow\nset size to (100) %\n\nset [ghost v] effect to (0)\n\ngo to x: (-209) y: (-116)\nset [level v] to [1]\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-0.5)\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n        point in direction (-90)\n        set rotation style [left-right v]\n    end\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        point in direction (90)\n        change [x v] by (1)\n        set rotation style [left-right v]\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change y by (1)\n                            if <touching (ground v)?> then\n                                change y by (-6)\n                                change x by ((x) * (-1))\n                                if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                                    set [y v] to [10]\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                else\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 (ground 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 (ground v)?> and <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\n    if <touching (death v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        wait (0.5) seconds\n        set [ghost v] effect to (0)\n        go to x: (-209) y: (-116)\n        set [x v] to [0]\n        set [y v] to [0]\n    end\n    if <touching (bouncy v)?> then\n        set [y v] to [18]\n    end\nend\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <touching color (#2fff00)?> then\n        broadcast (message1 v)\n        go to x: (-148) y: (-152)\n        stop [this script v]\n    end\nend\n\ngo to x: (-205) y: (-152)\n\nwhen flag clicked\nshow\ngo to x: (-148) y: (-152)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen I receive [message1 v]\nforever\n    if <touching color (#2fff00)?> then\n        broadcast (message2 v)\n        go to x: (-148) y: (-152)\n        stop [this script v]\n    end\nend\n\ngo to x: (-205) y: (-152)\n\ngo to x: (-180) y: (-127)\n\ngo to x: (-180) y: (-127)\n\ngo to x: (-205) y: (-152)\n\ngo to x: (-205) y: (-152)\n\ngo to x: (-180) y: (-127)\n\nwhen flag clicked\nforever\n    if <touching (sprite4 v)?> then\n        go to x: (-59) y: (-151)\n    end\nend\n\nwhen I receive [message2 v]\nforever\n    if <touching color (#2fff00)?> then\n        broadcast (message3 v)\n        go to x: (-148) y: (-152)\n        stop [this script v]\n    end\nend\n\nwhen I receive [message3 v]\nforever\n    if <touching color (#2fff00)?> then\n        broadcast (message4 v)\n        go to x: (-148) y: (-152)\n        stop [this script v]\n    end\nend\n\nwhen I receive [message4 v]\nforever\n    if <touching color (#2fff00)?> then\n        broadcast (message5 v)\n        go to x: (-148) y: (-152)\n        stop [this script v]\n    end\nend\n\nwhen I receive [message5 v]\nforever\n    if <touching color (#2fff00)?> then\n        broadcast (message 6 v)\n        go to x: (-148) y: (-152)\n        stop [this script v]\n    end\nend\n\ngo to x: (-130) y: (-164)\n\nwhen flag clicked\ngo to x: (-137) y: (-152)\nhide\nwait (.3) seconds\nshow\n\nwhen flag clicked\n\ngo to x: (-137) y: (-151)\n\nwhen flag clicked\nask [are you playing mobile?] and wait\nif <(answer) = [yes]> then\n    say [THEN TO BAD this game dosent work] for (4) seconds\nend\nif <(answer) = [no]> then\n    broadcast (computer v)\n    stop [this script v]\nend\n\nbroadcast (EUNICE 093 IS COOL v)\nshow\n\nwhen flag clicked\n\nset size to (50) %\n\nwhen I receive [eunice 093 is cool v]\n\nwhen I receive [eunice 093 is cool v]\nshow\n\nwhen I receive [computer v]\nshow\ngo to x: (-148) y: (-152)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [x v] by (0.5)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-0.5)\n    end\n    change x by (X)\n    set [x v] to ((X) * (0.9))\n    if <touching color (#000000)?> then\n        change y by (0.5)\n        if <touching color (#000000)?> then\n            change y by (0.5)\n            if <touching color (#000000)?> then\n                change y by (0.5)\n                if <touching color (#000000)?> then\n                    change y by (0.5)\n                    if <touching color (#000000)?> then\n                        change y by (0.5)\n                        if <touching color (#000000)?> then\n                            change y by (0.5)\n                            if <touching color (#000000)?> then\n                                change y by (0.5)\n                                if <touching color (#000000)?> then\n                                    change y by (0.5)\n                                    if <key (up arrow v) pressed?> then\n                                        if <[0] < (X)> then\n                                            set [x v] to [-7]\n                                        else\n                                            set [x v] to [7]\n                                        end\n                                        set [y v] to [10]\n                                    else\n                                        set [x v] to ((X) * (-1.3))\n                                        change x by (X)\n                                        set [x v] to [0]\n                                        change x by ((X) / (5))\n                                    end\n                                    change y by (-4)\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-0.5)\n    change y by (Y)\n    if <touching color (#000000)?> then\n        set [y v] to ((Y) * (-0.25))\n        change y by (Y)\n        if <touching color (#000000)?> then\n            change y by (Y)\n            if <touching color (#000000)?> then\n                change y by (Y)\n                if <touching color (#000000)?> then\n                    change y by (Y)\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <touching color (#000000)?>> then\n        set [y v] to [10]\n    end\n    change y by (1)\n    if <touching color (#fd0000)?> then\n        go to x: (-112) y: (-152)\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\nhide\nwait (2) seconds\nshow\nswitch costume to (costume1 v)\n\nwhen I receive [message1 v]\nswitch costume to (costume2 v)\n\nwhen I receive [message2 v]\nswitch costume to (costume3 v)\n\nwhen I receive [message3 v]\nswitch costume to (costume4 v)\n\nwhen I receive [message4 v]\nswitch costume to (costume5 v)\n\nswitch costume to (costume1 v)\n\nwhen I receive [message5 v]\nswitch costume to (costume6 v)\n\nwhen I receive [message 6 v]\nswitch costume to (costume7 v)\n\n@Heart\n\nwhen flag clicked\nhide\n\nwhen I receive [message2 v]\nshow\n\nwhen I receive [message3 v]\nhide\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nwhen I receive [message2 v]\nshow\ngo to x: (36) y: (28)\n\nwhen I receive [message3 v]\ngo to x: (5) y: (-12)\n\ngo to x: (-4) y: (25)\n\nwhen I receive [message4 v]\nshow\ngo to x: (5) y: (-12)\n\ngo to x: (36) y: (28)\n\ngo to x: (36) y: (28)\n\nwhen I receive [message 6 v]\nhide\n\ngo to x: (36) y: (28)\n\n@Sprite5\n\nwhen flag clicked\nshow\nwait (2) seconds\nhide\n\n@Sprite6\n\nwhen I receive [adventure n 1 gogogogo v]\ngo to x: (-200) y: (10)\nshow\n\nwhen I receive [adventure n 1 gogogogo v]\nswitch backdrop to (1 v)\ngo to x: (-200) y: (10)\n\nwhen flag clicked\nhide\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-200) y: (10)\n    end\n    if <touching color (#00ac46)?> then\n        next backdrop\n        go to x: (-200) y: (10)\n    end\n    if <touching (2 v)?> then\n        next backdrop\n        go to x: (-200) y: (10)\n    end\n    if  then\n        go to x: (-200) y: (10)\n    end\n    if <<touching (sprite3 v)?> or <touching (sprite6 v)?>> then\n        repeat (20)\n            change y by (15)\n        end\n    end\n    if <touching (sprite5 v)?> then\n        go to x: (-200) y: (10)\n    end\nend\n\nwhen flag clicked\nset size to (100) %\ngo to x: (-11) y: (-58)\nhide\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\nshow\ngo to x: (-200) y: (10)\n\nwhen flag clicked\nforever\n    play sound [Itro & Tobu - Cloud 9 \[NCS Release\] v] until done\nend\n\n
DOUBLE CLICK FREEN FLAG arrow keys to move. jack is a kid who gets bad grades. go through this platformer like fave and follow FOLLOW. @INFNTY https://scratch.mit.edu/projects/326323214