Jungle // A Platformer #games

Instructions: CLICK TWICE THE GREEN FLAG!\nHi Welcome!\nWhen I see the @0014049 contest I think: I have to participate! So i made this :D\n-Instruccions-\n-Move with arrow keys\n-Avoid danger\n-Have fun!\n\nPropose to be featured? https://scratch.mit.edu/studios/4228481/

@Stage\n\nwhen flag clicked\nforever\n    play sound [Inferno v] until done\nend\n\n@Platforms\n\nwhen flag clicked\nwait (0) seconds\nswitch costume to (disfraz1 v)\ngo to x: (0) y: (0)\nshow\nforever\n    if <(level) = [2]> then\n        switch costume to (disfraz2 v)\n    end\n    if <(level) = [3]> then\n        switch costume to (disfraz3 v)\n    end\n    if <(level) = [4]> then\n        switch costume to (disfraz4 v)\n    end\n    if <(level) = [5]> then\n        switch costume to (disfraz5 v)\n    end\n    if <(level) = [6]> then\n        switch costume to (disfraz6 v)\n    end\n    if <(level) = [7]> then\n        switch costume to (disfraz7 v)\n    end\n    if <(level) = [8]> then\n        switch costume to (disfraz8 v)\n    end\n    if <(level) = [9]> then\n        switch costume to (disfraz9 v)\n    end\n    if <(level) = [10]> then\n        switch costume to (disfraz10 v)\n    end\n    if <(level) = [11]> then\n        switch costume to (disfraz11 v)\n    end\nend\n\n@end\n\nwhen flag clicked\nshow\nset [level v] to [0]\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    if <touching (player v)?> then\n        change [level v] by (1)\n        broadcast (new level v)\n    end\nend\n\n@Spikes\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\ngo to [front v] layer\nforever\n    if <(level) = [1]> then\n        show\n        switch costume to (disfraz1 v)\n    end\n    if <(level) = [2]> then\n        switch costume to (disfraz2 v)\n    end\n    if <(level) = [3]> then\n        switch costume to (disfraz3 v)\n    end\n    if <(level) = [4]> then\n        switch costume to (disfraz4 v)\n    end\n    if <(level) = [5]> then\n        switch costume to (disfraz5 v)\n    end\n    if <(level) = [6]> then\n        hide\n    end\n    if <(level) = [7]> then\n        switch costume to (disfraz6 v)\n        show\n    end\n    if <(level) = [8]> then\n        hide\n    end\n    if <(level) = [9]> then\n        switch costume to (disfraz7 v)\n        show\n    end\n    if <(level) = [10]> then\n        switch costume to (disfraz8 v)\n    end\n    if <(level) = [11]> then\n        hide\n    end\nend\n\n@Player\n\ndefine Special Detections\nif <<touching (spikes v)?> or <<touching (saws v)?> or <touching (the water  v)?>>> then\n    go to x: (-210) y: (-79)\nend\nif <touching (jumper v)?> then\n    change [y v] by (30)\nend\n\nwhen flag clicked\nshow\ngo to x: (-207) y: (-39)\nforever\n    go to [front v] layer\n    set [x v] to [0]\n    set [y v] to [0]\n    forever\n        change [y v] by (-1)\n        set [x v] to ((x) * (0.9))\n        if <key (right arrow v) pressed?> then\n            change [x v] by (1)\n        end\n        if <key (left arrow v) pressed?> then\n            change [x v] by (-1)\n        end\n        change x by (x)\n        if <<touching (platforms v)?> or <touching (moving platform v)?>> then\n            change y by (1)\n        end\n        if <<touching (platforms v)?> or <touching (moving platform v)?>> then\n            change y by (1)\n        end\n        if <<touching (platforms v)?> or <touching (moving platform v)?>> then\n            change y by (1)\n        end\n        if <<touching (platforms v)?> or <touching (moving platform v)?>> then\n            change y by (1)\n        end\n        if <<touching (platforms v)?> or <touching (moving platform v)?>> then\n            change y by (-4)\n            change x by ((x) * (-1))\n            if <key (up arrow v) pressed?> then\n                set [y v] to [10]\n                if <([abs v] of (x) ) = (x)> then\n                    set [x v] to [-4]\n                else\n                    set [x v] to [4]\n                end\n            else\n                set [x v] to [0]\n            end\n        end\n        change y by (y)\n        if <<touching (platforms v)?> or <touching (moving platform v)?>> then\n            change y by ((y) - ((y) * (2)))\n            set [y v] to [0]\n        end\n        change y by (-1)\n        if <<key (up arrow v) pressed?> and <<touching (platforms v)?> or <touching (moving platform v)?>>> then\n            change [y v] by (14)\n        end\n        change y by (1)\n        Special Detections\n    end\nend\n\nwhen I receive [new level v]\ngo to x: (-207) y: (-39)\n\n@decoration\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (disfraz1 v)\nshow\nforever\n    if <(level) = [1]> then\n        switch costume to (disfraz2 v)\n    end\n    if <(level) = [2]> then\n        switch costume to (disfraz3 v)\n    end\n    if <(level) = [3]> then\n        switch costume to (disfraz4 v)\n    end\n    if <(level) = [4]> then\n        switch costume to (disfraz5 v)\n    end\n    if <(level) = [7]> then\n        switch costume to (disfraz6 v)\n    end\n    if <(level) = [9]> then\n        switch costume to (disfraz7 v)\n    end\nend\n\n@Clouds\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nset size to (pick random (50) to (80)) %\nshow\nset [ghost v] effect to (10)\nswitch costume to (pick random (1) to (4))\nif <(side) = [1]> then\n    go to x: (300) y: (pick random (150) to (100))\n    repeat until <(x position) < [-250]>\n        change x by (-1)\n    end\n    delete this clone\nend\nif <(side) = [2]> then\n    go to x: (-300) y: (pick random (150) to (100))\n    repeat until <(x position) > [250]>\n        change x by (1)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\ngo [forward v] (1) layers\n\nforever\nend\n\nwhen flag clicked\nforever\n    set [side v] to (pick random (1) to (2))\n    create clone of (_myself_ v)\n    wait (pick random (5) to (10)) seconds\nend\n\n@Jumper\n\nwhen flag clicked\nswitch costume to (disfraz2 v)\nhide\nforever\n\nwhen flag clicked\nset [level v] to [0]\n\nwhen flag clicked\nif <(level) = [0]> then\n    hide\nend\n\nwhen flag clicked\nforever\n    if <(level) = [3]> then\n        show\n        go to x: (-43) y: (-117)\n    end\n    if <(level) = [4]> then\n        hide\n    end\n    if <(level) = [10]> then\n        show\n        go to x: (-86) y: (-82)\n        create clone of (_myself_ v)\n    end\n    if <(level) = [11]> then\n        hide\n    end\nend\n\nwhen I start as a clone\ngo to x: (70) y: (-83)\nif <(level) = [11]> then\n    delete this clone\nend\n\n@eye\n\nwhen flag clicked\ngo to (player v)\nswitch costume to (disfraz1 v)\ngo [forward v] (1000000000000000) layers\ngo to [front v] layer\nforever\n    point towards (player v)\n    move ((distance to [player v]) / (0.7)) steps\nend\n\nwhen flag clicked\nshow\n\n@Saws\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(level) = [6]> then\n        show\n        go to [back v] layer\n        go [forward v] (1) layers\n        go to x: (-9) y: (-96)\n        repeat until <(level) = [7]>\n            turn right (8) degrees\n        end\n    end\n    if <(level) = [7]> then\n        hide\n        stop [this script v]\n    end\nend\n\n@The water \n\nwhen flag clicked\nhide\nforever\n    if <(level) = [8]> then\n        show\n        go to x: (37) y: (-39)\n    end\nend\n\n@Moving Platform\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(level) = [8]> then\n        show\n        go to [front v] layer\n        go [forward v] (1) layers\n        go to x: (0) y: (0)\n        repeat until <(level) = [9]>\n            glide (2) secs to x: (-197) y: (0)\n            glide (2) secs to x: (0) y: (0)\n        end\n    end\n    if <(level) = [9]> then\n        hide\n        stop [this script v]\n    end\nend\n\n@The labs\n\nwhen flag clicked\nshow\nforever\n    if <(level) = [0]> then\n        switch costume to (disfraz1 v)\n    end\n    if <(level) = [1]> then\n        switch costume to (disfraz2 v)\n    end\n    if <(level) = [2]> then\n        switch costume to (disfraz3 v)\n    end\n    if <(level) = [3]> then\n        switch costume to (disfraz4 v)\n    end\n    if <(level) = [4]> then\n        switch costume to (disfraz5 v)\n    end\n    if <(level) = [5]> then\n        switch costume to (disfraz6 v)\n    end\n    if <(level) = [6]> then\n        switch costume to (disfraz7 v)\n    end\n    if <(level) = [7]> then\n        switch costume to (disfraz8 v)\n    end\n    if <(level) = [8]> then\n        switch costume to (disfraz9 v)\n    end\n    if <(level) = [9]> then\n        switch costume to (disfraz10 v)\n    end\n    if <(level) = [10]> then\n        switch costume to (disfraz11 v)\n    end\n    if <(level) = [11]> then\n        hide\n    end\nend\n\n@Thumb\n\nwhen flag clicked\nhide\n\n