Minion World (A Simple Platformer)| Scratch Platformer

Instructions: Hi Guys\nThis is a simple Platformer \nAll are explained in the project.\nSubscribe to SL SMART MIND for more exciting videos\n\nCONTROLS\nUP = UP ARROW\nRIGHT = RIGHT ARROW\nLEFT = LEFT ARROW\n\nLOVE,FAV,FOLLOW\n\n

@Stage\n\nwhen flag clicked\nset volume to (50) %\nforever\n    play sound [yt1s v] until done\nend\n\nwhen flag clicked\nforever\n    switch backdrop to (LEVEL)\nend\n\n@Player\n\nwhen flag clicked\nset [level v] to [1]\nset [score v] to [0]\ngo to x: (-198) y: (-42)\nshow variable [score v]\nforever\n    change [y vel v] by (-1)\n    if <key (right arrow v) pressed?> then\n        switch costume to (right v)\n        change [x vel v] by (1.2)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (left v)\n        change [x vel v] by (-1.2)\n    end\n    set [x vel v] to ((x vel) * (0.87))\n    change x by (x vel)\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (-6)\n        change y by ((x vel) * (-1))\n        set [x vel v] to [0]\n    end\n    change y by (y vel)\n    if <touching (level v)?> then\n        change y by ((y vel) * (-1))\n        set [y vel v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <touching (level v)?>> then\n        switch costume to (up v)\n        set [y vel v] to [13]\n    end\n    change y by (1)\n    if <(x position) > [240]> then\n        broadcast (NEW LEVEL v)\n    end\n    if <touching (danger v)?> then\n        go to x: (-199) y: (-104)\n        start sound [crunch v]\n    end\n    if <[-180] > (y position)> then\n        go to x: (-199) y: (-104)\n        start sound [crunch v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <key (any v) pressed?>> then\n        switch costume to (normal v)\n    end\n    if <<key (right arrow v) pressed?> and <key (up arrow v) pressed?>> then\n        switch costume to (up right v)\n    end\n    if <<key (left arrow v) pressed?> and <key (up arrow v) pressed?>> then\n        switch costume to (up left v)\n    end\n    if <(LEVEL) = [7]> then\n        switch costume to (normal v)\n        stop [other scripts in sprite v]\n        wait (3) seconds\n        stop [all v]\n    end\nend\n\nwhen I receive [new level v]\nchange [level v] by (1)\ngo to x: (-199) y: (-104)\n\n@Level\n\nwhen flag clicked\nforever\n    switch costume to (LEVEL)\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [2]> then\n        broadcast (LEVEL 2 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [new level v]\nforever\n    if <(LEVEL) = [3]> then\n        broadcast (LEVEL 3 v)\n        stop [this script v]\n    end\n    if <(LEVEL) = [4]> then\n        broadcast (LEVEL 4 v)\n        stop [this script v]\n    end\n    if <(LEVEL) = [5]> then\n        broadcast (LEVEL 5 v)\n        stop [this script v]\n    end\n    if <(LEVEL) = [6]> then\n        broadcast (LEVEL 6 v)\n        stop [this script v]\n    end\n    if <(LEVEL) = [7]> then\n        broadcast (LEVEL 7 v)\n        stop [this script v]\n    end\nend\n\n@Danger\n\nwhen flag clicked\ngo [backward v] (1) layers\nforever\n    switch costume to (LEVEL)\nend\n\n@coin1\n\nwhen flag clicked\ngo to x: (-91) y: (-57)\ngo [backward v] (1) layers\nforever\n    change y by (4)\n    wait (0.03) seconds\n    change y by (4)\n    wait (0.03) seconds\n    change y by (4)\n    wait (0.03) seconds\n    change y by (4)\n    wait (0.03) seconds\n    change y by (1)\n    wait (0.05) seconds\n    change y by (-1)\n    wait (0.05) seconds\n    change y by (-4)\n    wait (0.03) seconds\n    change y by (-4)\n    wait (0.03) seconds\n    change y by (-4)\n    wait (0.03) seconds\n    change y by (-4)\n    wait (0.03) seconds\nend\n\nwhen flag clicked\nshow\nforever\n    if <touching (player v)?> then\n        start sound [collect v]\n        change [score v] by (5)\n        hide\n    end\nend\n\nwhen I receive [level 2 v]\nif <(LEVEL) = [2]> then\n    show\n    go to x: (-133) y: (-90)\nend\n\nwhen I receive [level 3 v]\nif <(LEVEL) = [3]> then\n    show\n    go to x: (-133) y: (-90)\nend\n\nwhen I receive [level 4 v]\nif <(LEVEL) = [4]> then\n    show\n    go to x: (-133) y: (-90)\nend\n\nwhen I receive [level 5 v]\nif <(LEVEL) = [5]> then\n    show\n    go to x: (-155) y: (-93)\nend\n\nwhen I receive [level 6 v]\nif <(LEVEL) = [6]> then\n    show\n    go to x: (-155) y: (-97)\nend\n\nwhen I receive [level 7 v]\nif <(LEVEL) = [7]> then\n    hide\nend\n\n@coin2\n\nwhen flag clicked\ngo to x: (22) y: (-69)\ngo [backward v] (1) layers\nforever\n    change y by (4)\n    wait (0.03) seconds\n    change y by (4)\n    wait (0.03) seconds\n    change y by (4)\n    wait (0.03) seconds\n    change y by (4)\n    wait (0.03) seconds\n    change y by (1)\n    wait (0.05) seconds\n    change y by (-1)\n    wait (0.05) seconds\n    change y by (-4)\n    wait (0.03) seconds\n    change y by (-4)\n    wait (0.03) seconds\n    change y by (-4)\n    wait (0.03) seconds\n    change y by (-4)\n    wait (0.03) seconds\nend\n\nwhen flag clicked\nshow\nforever\n    if <touching (player v)?> then\n        start sound [collect v]\n        change [score v] by (5)\n        hide\n    end\nend\n\nwhen I receive [level 2 v]\nif <(LEVEL) = [2]> then\n    show\n    go to x: (5) y: (-30)\nend\n\nwhen I receive [level 3 v]\nif <(LEVEL) = [3]> then\n    show\n    go to x: (5) y: (-30)\nend\n\nwhen I receive [level 4 v]\nif <(LEVEL) = [4]> then\n    show\n    go to x: (-18) y: (30)\nend\n\nwhen I receive [level 5 v]\nif <(LEVEL) = [5]> then\n    show\n    go to x: (46) y: (-40)\nend\n\nwhen I receive [level 6 v]\nif <(LEVEL) = [6]> then\n    show\n    go to x: (-67) y: (-98)\nend\n\nwhen I receive [level 7 v]\nif <(LEVEL) = [7]> then\n    hide\nend\n\n@coin3\n\nwhen flag clicked\ngo to x: (143) y: (-88)\ngo [backward v] (1) layers\nforever\n    change y by (4)\n    wait (0.03) seconds\n    change y by (4)\n    wait (0.03) seconds\n    change y by (4)\n    wait (0.03) seconds\n    change y by (4)\n    wait (0.03) seconds\n    change y by (1)\n    wait (0.05) seconds\n    change y by (-1)\n    wait (0.05) seconds\n    change y by (-4)\n    wait (0.03) seconds\n    change y by (-4)\n    wait (0.03) seconds\n    change y by (-4)\n    wait (0.03) seconds\n    change y by (-4)\n    wait (0.03) seconds\nend\n\nwhen flag clicked\nshow\nforever\n    if <touching (player v)?> then\n        start sound [collect v]\n        change [score v] by (5)\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [level 2 v]\nif <(LEVEL) = [3]> then\n    show\n    go to x: (153) y: (-90)\nend\n\nwhen I receive [level 3 v]\nif <(LEVEL) = [2]> then\n    show\n    go to x: (153) y: (-90)\nend\n\nwhen I receive [new level v]\nshow\nforever\n    if <touching (player v)?> then\n        change [score v] by (5)\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [level 4 v]\nif <(LEVEL) = [4]> then\n    show\n    go to x: (11) y: (149)\nend\n\nwhen I receive [level 5 v]\nif <(LEVEL) = [5]> then\n    show\n    go to x: (202) y: (-91)\nend\n\nwhen I receive [level 6 v]\nif <(LEVEL) = [6]> then\n    show\n    go to x: (202) y: (-91)\nend\n\nwhen I receive [level 7 v]\nif <(LEVEL) = [7]> then\n    hide\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\nhide variable [score v]\n\n