The 100 Level platformer
@Stage\n\nwhen flag clicked\nshow list [feedback v]\nclear graphic effects\nforever\n    set [level v] to (join [Level ] (join (backdrop [number v]) [/100]))\nend\n\nwhen flag clicked\nset [time v] to [0]\nforever\n    wait (0.1) seconds\n    change [time v] by (0.1)\nend\n\nwhen [h v] key pressed\n\nwhen flag clicked\nforever\n    if <key (h v) pressed?> then\n        hide variable [level v]\n        hide variable [time v]\n        hide variable [volume v]\n    else\n        show variable [time v]\n        show variable [level v]\n        show variable [volume v]\n    end\nend\n\nwhen backdrop switches to [backdrop100 v]\nwait (3) seconds\nrepeat (200)\n    change [mosaic v] effect by (10)\nend\nset [mosaic v] effect to (200)\nstop [other scripts in stage v]\nbroadcast (message1 v)\nforever\n    repeat (200)\n        change [mosaic v] effect by (10)\n    end\n    set [mosaic v] effect to (200)\nend\n\nwhen I receive [message1 v]\nstop all sounds\nask [What's your name?] and wait\nhide list [feedback v]\nwait (1) seconds\ninsert (answer) at (last) of [feedback v] \nstart sound [snap v]\nwait (0.5) seconds\ninsert (join [Time:] (Time)) at (last) of [feedback v] \nstart sound [snap v]\nwait (0.5) seconds\ninsert (join [Deaths] (Deaths)) at (last) of [feedback v] \nstart sound [snap v]\nwait (0.5) seconds\ninsert [Congrtats] at (last) of [feedback v] \nstart sound [snap v]\nwait (0.5) seconds\ninsert [For More Games Go to Big-Stack-of-Hay \(In Notes And Credits\)] at (last) of [feedback v] \nstart sound [cheer v]\n\nwhen flag clicked\ndelete (all) of [feedback v]\n\nwhen flag clicked\nforever\n    play sound [odesong-b v] until done\nend\n\nwhen flag clicked\nset [volume v] to [100]\nforever\n    set volume to (Volume) %\nend\n\n@Ball\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    next costume\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [backdrop53]> then\n        set size to (20) %\n        wait (0.001) seconds\n        next costume\n    else\n        set size to (90) %\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nset [deaths v] to [0]\ngo to x: (-196) y: (28)\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change x by ((Xv) * (-1))\n                        change y by (-5)\n                        if <key (up arrow v) pressed?> then\n                            if <(Xv) > [0]> then\n                                set [xv v] to [-5]\n                            else\n                                set [xv v] to [5]\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    if <touching color (#000000)?> then\n        change y by (1)\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    if <touching color (#ff9400)?> then\n        set [yv v] to [0]\n        switch backdrop to (next backdrop v)\n        go to x: (-196) y: (-77)\n    end\n    if <touching color (#003fff)?> then\n        set [yv v] to [15]\n    end\n    if <touching color (#00ffff)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [5]\n        else\n            set [yv v] to [-1]\n        end\n    end\n    if <touching color (#ff0000)?> 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        change [deaths v] by (1)\n        clear graphic effects\n        go to x: (-196) y: (-77)\n    end\nend\n\nwhen backdrop switches to [backdrop79 v]\nrepeat until <not <(backdrop [name v]) = [backdrop79]>>\n    if <<(costume [number v]) = [5]> and <key (space v) pressed?>> then\n        set [yv v] to [0]\n        switch backdrop to (next backdrop v)\n        go to x: (-196) y: (-77)\n    end\nend\n\nwhen backdrop switches to [backdrop80 v]\nset pen color to (#ff0000)\nrepeat until <not <(backdrop [name v]) = [backdrop80]>>\n    erase all\n    if <<key (space v) pressed?> or <<key (k v) pressed?> or <key (down arrow v) pressed?>>> then\n        set pen color to (#ff0000)\n        pen down\n        wait (1) seconds\n        erase all\n    end\n    if <key (3 v) pressed?> then\n        set pen color to (#000000)\n        pen down\n        set [yv v] to [0]\n        switch backdrop to (next backdrop v)\n        go to x: (-196) y: (-77)\n        erase all\n        pen up\n    end\nend\n\nwhen backdrop switches to [backdrop81 v]\nset pen size to (10)\npen down\nset pen color to (#2c5db9)\nwait (10) seconds\npen up\nerase all\nswitch backdrop to (next backdrop v)\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop59 v]\nswitch costume to (costume1 v)\ngo to x: (-4) y: (168)\npoint in direction (90)\nshow\nrepeat until <not <(backdrop [name v]) = [backdrop59]>>\n    point in direction (90)\n    glide (5) secs to x: (-20) y: (-168)\n    glide (5) secs to x: (-20) y: (168)\nend\nhide\n\nwhen backdrop switches to [backdrop60 v]\nshow\nstop [other scripts in sprite v]\nswitch costume to (costume2 v)\ngo to x: (0) y: (8)\nrepeat until <not <(backdrop [name v]) = [backdrop60]>>\n    turn right (3) degrees\nend\nhide\n\nwhen backdrop switches to [backdrop61 v]\nstop [other scripts in sprite v]\npoint in direction (0)\ngo to x: (-206) y: (8)\nshow\nrepeat until <not <(backdrop [name v]) = [backdrop61]>>\n    glide (1) secs to x: (-98) y: (4)\n    glide (1) secs to x: (-206) y: (8)\nend\nhide\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop59 v]\npoint in direction (90)\ngo to x: (-4) y: (168)\nshow\nrepeat until <not <(backdrop [name v]) = [backdrop59]>>\n    point in direction (90)\n    glide (5) secs to x: (110) y: (-168)\n    glide (5) secs to x: (110) y: (168)\nend\nhide\n\nwhen backdrop switches to [backdrop60 v]\nhide\n\nwhen backdrop switches to [backdrop61 v]\npoint in direction (180)\ngo to x: (107) y: (-71)\nshow\nrepeat until <not <(backdrop [name v]) = [backdrop61]>>\n    glide (1) secs to x: (-4) y: (-69)\n    glide (1) secs to x: (107) y: (-71)\nend\nhide\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop60 v]\nhide\n\nwhen backdrop switches to [backdrop61 v]\nshow\npoint in direction (90)\ngo to x: (164) y: (-172)\nrepeat until <not <(backdrop [name v]) = [backdrop61]>>\n    glide (5) secs to x: (165) y: (171)\n    glide (5) secs to x: (164) y: (-172)\nend\nhide\n\nwhen backdrop switches to [backdrop59 v]\ngo to x: (262) y: (-28)\nshow\nrepeat until <not <(backdrop [name v]) = [backdrop59]>>\n    turn right (2) degrees\nend\nhide\n\n@Sprite5\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop68 v]\ngo to x: (279) y: (24)\nshow\nrepeat until <not <(backdrop [name v]) = [Backdrop68]>>\n    turn right (1) degrees\nend\nhide\n\n@Sprite1\n\nwhen flag clicked\nset [mode v] to [0]\nset [ghost v] effect to (50)\ngo to [front v] layer\nset x to (0)\nset y to (0)\nforever\n    if <<(backdrop [name v]) = [backdrop1]> and <not <(mode) = [new]>>> then\n        show\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            set [mode v] to [new]\n        end\n    else\n        hide\n    end\nend\n\n@Sprite6\n\nwhen flag clicked\nset x to (0)\nset y to (0)\nforever\n    if <(mode) = [new]> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite7\n\nwhen flag clicked\nforever\n    if <(mode) = [new]> then\n        show\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            set [mode v] to [0]\n        end\n    else\n        hide\n    end\nend\n\n
Press Green Flag to start, restart game Press r to restart level and Press h to hide the time and level.\n\nUse Arrow Keys to move the ball.\nAvoid red Dark Blue Makes You jump and swim in light blue.\n\nFeedback Will Be shown at the end of the game\n\nEnjoy.\n_____________________________________________________\nFor More Fun Games Go to:\nhttps://scratch.mit.edu/studios/2056322/