platformer 

Instructions: \nthanks a: @depiklator 40 % su parte, @juyu77 un 60% lo podreis mirara mis cambios\n\nControles:\nFlecha izquierda:Izquierda\nFLecha derecha:Derecha\nFLecha arriva :Saltar\n\n21/1/2021:50 visits\n24/1/2021:100 visits is my record\n5/2/2021:500 visits\n10/2/2021: 800visits\n15/2/2021:1k wooowwwww\n22/2021:1,5k for the 2k\n24/3/2022:3,3k very thanks\n

@Stage\n\n@Pickle\n\nwhen flag clicked\nhide\n\nwhen I receive [tn v]\nset size to (25) %\ngo to x: (206) y: (-147)\ngo to [front v] layer\nshow\n\n@MenuBlock2\n\nwhen flag clicked\nhide\n\nwhen I receive [yo v]\nswitch costume to (costume1 v)\nshow\ngo [backward v] (1) layers\ngo to x: (200) y: (-180)\nrepeat (25)\n    change y by (((60) - (y position)) * (0.2))\nend\n\nwhen flag clicked\nwait until <(level) = [2]>\nhide\n\n@Play2\n\nwhen I receive [start v]\nset [play1 v] to [10]\n\n    change y by (play1)\n    change [play1 v] by (-2)\n    if <touching (_edge_ v)?> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (115) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [back v]\nshow\ngo to x: (-2400) y: (-75)\nset [ghost v] effect to (80)\nrepeat (25)\n    change x by (((-10) - (x position)) * (0.2))\n    change [ghost v] effect by (-10)\nend\nwait until <<touching (mouse-pointer v)?> and <mouse down?>>\nwait until <not <mouse down?>>\nif <touching (mouse-pointer v)?> then\n    broadcast (player color v)\n    delete this clone\nend\n\nwhen this sprite clicked\nplay sound [pop v] until done\n\n@Text1\n\nwhen flag clicked\nbroadcast (back v)\n\nwhen I receive [start v]\nset [play1 v] to [10]\n\n    change y by (play1)\n    if <(y position) < [-170]> then\n        repeat (6)\n            change y by (play1)\n        end\n        hide\n        set [play1 v] to [0]\n        stop [this script v]\n    end\nend\n\nwhen I receive [back v]\nshow\ngo to x: (2400) y: (0)\nset [ghost v] effect to (80)\nrepeat (25)\n    change x by (((-5) - (x position)) * (0.2))\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [start v]\nset [timer v] to [0]\nshow variable [timer v]\nshow variable [☁ highscore2 v]\nwait (1) seconds\n\n    change [timer v] by (0.1)\n    wait (0.1) seconds\n    if <(level) = [21]> then\n        if <(Timer) < (☁ Highscore2)> then\n            set [☁ highscore2 v] to (Timer)\n        end\n        stop [this script v]\n    end\n    if <(back) = [1]> then\n        hide variable [☁ highscore2 v]\n        hide variable [timer v]\n        stop [this script v]\n    end\nend\n\nwhen I receive [restart v]\nset [timer v] to [0]\n\nwhen I receive [back v]\nhide variable [☁ highscore2 v]\nhide variable [timer v]\n\nwhen flag clicked\nhide variable [☁ highscore2 v]\nhide variable [timer v]\n\n@Sprite1\n\nwhen I start as a clone\nset size to (160) %\nshow\nif <(number) = [1]> then\n    switch costume to (normal v)\n    go to x: (-80) y: (-180)\n    forever\n        change y by (((-130) - (y position)) * (0.2))\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (normal v)\n        end\n    end\nend\nif <(number) = [2]> then\n    switch costume to (red v)\n    go to x: (-60) y: (-180)\n    forever\n        change y by (((-130) - (y position)) * (0.2))\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (red v)\n        end\n    end\nend\nif <(number) = [3]> then\n    switch costume to (orange v)\n    go to x: (-40) y: (-180)\n    forever\n        change y by (((-130) - (y position)) * (0.2))\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (orange v)\n        end\n    end\nend\nif <(number) = [4]> then\n    switch costume to (yellow v)\n    go to x: (-20) y: (-180)\n    forever\n        change y by (((-130) - (y position)) * (0.2))\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (yellow v)\n        end\n    end\nend\nif <(number) = [5]> then\n    switch costume to (green v)\n    go to x: (0) y: (-180)\n    forever\n        change y by (((-130) - (y position)) * (0.2))\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (green v)\n        end\n    end\nend\nif <(number) = [6]> then\n    switch costume to (lightblue v)\n    go to x: (20) y: (-180)\n    forever\n        change y by (((-130) - (y position)) * (0.2))\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (lightblue v)\n        end\n    end\nend\nif <(number) = [7]> then\n    switch costume to (blue v)\n    go to x: (40) y: (-180)\n    forever\n        change y by (((-130) - (y position)) * (0.2))\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (blue v)\n        end\n    end\nend\nif <(number) = [8]> then\n    switch costume to (purple v)\n    go to x: (60) y: (-180)\n    forever\n        change y by (((-130) - (y position)) * (0.2))\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (purple v)\n        end\n    end\nend\nif <(number) = [9]> then\n    switch costume to (pink v)\n    go to x: (80) y: (-180)\n    forever\n        change y by (((-130) - (y position)) * (0.2))\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (pink v)\n        end\n    end\nend\n\nwhen I receive [player color v]\nset [number v] to [0]\nwait (0) seconds\nrepeat (9)\n    change [number v] by (1)\n    create clone of (_myself_ v)\n    wait (0.1) seconds\nend\n\nwhen flag clicked\nset [number v] to [0]\n\nwhen flag clicked\nforever\n    hide\nend\n\nwhen I start as a clone\nforever\n    if <(Start) = [1]> then\n        hide\n        delete this clone\n    end\nend\n\ncreate clone of (_myself_ v)\n\n@MenuBlock3\n\nwhen flag clicked\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [start v]\nhide\n\nwhen I receive [thing v]\nswitch costume to (costume1 v)\nshow\ngo [backward v] (1) layers\ngo to x: (0) y: (-180)\nrepeat (25)\n    change y by (((-96) - (y position)) * (0.2))\nend\n\n@Platform\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nset [level v] to [1]\ngo to [front v] layer\nswitch costume to (1 v)\ngo [backward v] (1) layers\ngo to x: (0) y: (-180)\nwait (0.8) seconds\nshow\nrepeat (25)\n    change y by (((0) - (y position)) * (0.2))\nend\n\nwhen I receive [back v]\nhide\n\nwhen I receive [restart v]\nswitch costume to (1 v)\nset [level v] to [1]\n\nwhen I receive [next v]\nnext costume\nchange [level v] by (1)\n\nwhen flag clicked\nset [☁ highscore2 v] to [85,8]\n\nwhen flag clicked\nif <(level) = [2]> then\n    if <(Timer) > [8888]> then\n        stop [all v]\n    end\nend\n\nwhen flag clicked\nwait until <(level) = [27]>\nswitch backdrop to (fondo2 v)\n\n@MenuFade\n\nwhen flag clicked\nbroadcast (Back v)\n\nwhen I receive [back v]\nshow\ngo [backward v] (99999) layers\ngo to x: (-2400) y: (0)\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (80)\nrepeat (25)\n    change x by (((2) - (x position)) * (0.2))\n    change [ghost v] effect by (-1)\n    go [backward v] (99999) layers\nend\nforever\n    go [backward v] (99999) layers\n    go to x: (0) y: (0)\nend\n\nwhen flag clicked\nset [timer v] to [0]\n\n@Objeto1\n\nwhen flag clicked\nwait (10) seconds\nhide\n\nwhen flag clicked\nshow\nwait (10) seconds\nhide\n\n@Player\n\nwhen flag clicked\nhide\ngo to x: (-12) y: (-999)\n\nwhen flag clicked\nforever\n    if <(y position) > [-10]> then\n        if <(level) = [1]> then\n            broadcast (yo v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [start v]\nwait (0.8) seconds\nshow\ngo to x: (-222) y: (-80)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <touching color (#cc0099)?> then\n        set [mode v] to [jump]\n        set [yv v] to [15]\n    end\n    if <touching color (#5b9aea)?> then\n        if  then\n            change [yv v] by (-1)\n        else\n            change [yv v] by (1)\n        end\n    end\n    if <<key (r v) pressed?> and <key (g v) pressed?>> then\n        wait until <not <<key (g v) pressed?> and <key (r v) pressed?>>>\n        go to x: (-231) y: (-135)\n        set [xv v] to [0]\n        set [yv v] to [0]\n        broadcast (Restart v)\n    end\n    if <key (r v) pressed?> then\n        if <not <key (g v) pressed?>> then\n            wait until <not <key (r v) pressed?>>\n            go to x: (-231) y: (-135)\n            set [xv v] to [0]\n            set [yv v] to [0]\n        end\n    end\n    go to [front v] layer\n    if <(back) = [1]> then\n        hide\n        stop [this script v]\n    end\n    if <(x position) > [235]> then\n        broadcast (Next v)\n        set x to (-222)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\n    if <<(y position) < [-175]> or <touching color (#ff0000)?>> then\n        start sound [level1 v]\n        start sound [explode_11 v]\n        go to x: (-180) y: (-40)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        point in direction (90)\n        change [xv v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        point in direction (-90)\n        change [xv v] by (2)\n    end\n    set [xv v] to ((xv) * (0.85))\n    change x by (xv)\n    if <touching color (#000008)?> then\n        change y by (-2)\n        if <touching color (#000008)?> then\n            change y by (1)\n            if <touching color (#000008)?> then\n                change y by (1)\n                if <touching color (#000008)?> then\n                    change y by (1)\n                    if <touching color (#000008)?> then\n                        change y by (1)\n                        if <touching color (#000008)?> then\n                            change y by (1)\n                            if <touching color (#000008)?> then\n                                change y by (-5)\n                                change x by ((-1) * (xv))\n                                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <not <(xv) = [0]>>> then\n                                    set [mode v] to [walljump]\n                                    set [yv v] to [8]\n                                    set [xv v] to (((xv) / ([abs v] of (xv) )) * (-10))\n                                else\n                                    set [mode v] to [wallslide]\n                                    set [xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change y by (2)\n    end\n    change y by (-3)\n    if <touching color (#000008)?> then\n        if <(yv) = [-3]> then\n        if <key (up arrow v) pressed?> then\n            set [mode v] to [jump]\n            set [yv v] to [9]\n        end\n    end\n    if <<<<(mode) = [jump]> or <(mode) = [walljump]>> and <(yv) < [0]>> or > then\n        if <<key (left arrow v) pressed?> or <key (right arrow v) pressed?>> then\n            set [mode v] to [run]\n        else\n            if <([abs v] of (xv) ) > [.1]> then\n                set [mode v] to [skid]\n            else\n                set [mode v] to [stand]\n            end\n        end\n        set [mode v] to [fall]\n    end\n    change y by (3)\n    if <(yv) > [-15]> then\n        change [yv v] by (-0.5)\n    end\n    change y by (-2)\n    if <not <touching color (#000008)?>> then\n        change y by (-1)\n        if <not <touching color (#000008)?>> then\n            change y by (-1)\n            if <not <touching color (#000008)?>> then\n                change y by (-1)\n                if <not <touching color (#000008)?>> then\n                    change y by (-1)\n                    if <not <touching color (#000008)?>> then\n                        change y by (-1)\n                        if <not <touching color (#000008)?>> then\n                            change y by (5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (2)\n    change y by (yv)\n    if <touching color (#000008)?> then\n        change y by (-2)\n        if <touching color (#000008)?> then\n            change y by ((-1) * (yv))\n            set [yv v] to [-3]\n        end\n        change y by (2)\n    end\nend\n\nwhen this sprite clicked\nswitch costume to (costume2 v)\n\nwhen I receive [normal v]\nswitch costume to (normal v)\n\nwhen I receive [red v]\nswitch costume to (red v)\n\nwhen I receive [orange v]\nswitch costume to (orange v)\n\nwhen I receive [yellow v]\nswitch costume to (yellow v)\n\nwhen I receive [green v]\nswitch costume to (green v)\n\nwhen I receive [lightblue v]\nswitch costume to (lightblue v)\n\nwhen I receive [blue v]\nswitch costume to (blue v)\n\nwhen I receive [purple v]\nswitch costume to (purple v)\n\nwhen I receive [pink v]\nswitch costume to (pink v)\n\nwhen I receive [player color v]\ngo to x: (-117) y: (-145)\npoint in direction (-90)\nshow\n\nwhen flag clicked\nswitch costume to (normal v)\nset [back v] to [0]\n\nwhen I receive [start v]\nhide\n\nwhen this sprite clicked\nhide\n\nwhen flag clicked\nforever\n    if <touching color (#a8fa4f)?> then\n        \n    end\nend\n\nwhen flag clicked\nwait (3) seconds\nstart sound [level1 v]\n\nwhen this sprite clicked\n\n@Play3\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nwait (1) seconds\ngo to x: (-208) y: (-163)\nshow\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        wait until <not <mouse down?>>\n        if <touching (mouse-pointer v)?> then\n            set [start v] to [0]\n            set [back v] to [1]\n            hide\n            broadcast (Back v)\n            wait (0.3) seconds\n            set [back v] to [0]\n            stop [this script v]\n        end\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nshow\nswitch costume to (costume1 v)\ngo to [front v] layer\nbroadcast (TN v)\nstop [all v]\n\n@intro\n\nwhen flag clicked\nset [direction v] to [8]\nset size to (80) %\ngo to [front v] layer\nswitch costume to (capture3 v)\nshow\nchange [mi variable v] by (10)\npoint in direction (90)\ngo to x: (400) y: (0)\nglide (0.25) secs to x: (0) y: (0)\nrepeat (85)\n    change [mi variable v] by (10)\n    point in direction ((90) + (([sin v] of (mi variable) ) * (10)))\nend\npoint in direction (90)\nrepeat (10)\n    change y by (10)\nend\nswitch costume to (capture3 v)\nwait (0.3) seconds\nhide\nwait (0.3) seconds\nshow\ngo to x: (0) y: (0)\nrepeat (120)\n    change [direction v] by (8)\n    point in direction ((([sin v] of ((direction) + (8)) ) * (20)) + (90))\n    set size to ((([sin v] of (((direction) + (8)) * (1.4)) ) * (60)) + (100)) %\nend\nwait (0.9) seconds\nglide (1) secs to x: (4000) y: (0)\nrepeat (4)\n    change [ghost v] effect by (60)\nend\nhide\nbroadcast (intro v)\npoint in direction (90)\n\nwhen flag clicked\nstart sound [my intro song v]\n\n@Play\n\nwhen I receive [start v]\nset [play1 v] to [10]\n\n    change y by (play1)\n    change [play1 v] by (-2)\n    if <touching (_edge_ v)?> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [back v]\nshow\ngo to x: (-2400) y: (-27)\nset [ghost v] effect to (80)\nrepeat (25)\n    change x by (((0) - (x position)) * (0.2))\n    change [ghost v] effect by (-10)\nend\nwait until <<touching (mouse-pointer v)?> and <mouse down?>>\nwait until <not <mouse down?>>\nif <touching (mouse-pointer v)?> then\n    broadcast (Start v)\n    stop [this script v]\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (115) %\n    else\n        set size to (100) %\n    end\nend\n\n@Menublock3\n\nwhen I receive [start v]\nhide\n\nwhen I receive [back v]\nhide\nwait (0.6) seconds\ngo to x: (-198) y: (-154)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (170) %\n        if <mouse down?> then\n            broadcast (Thing v)\n            hide\n            stop [this script v]\n        end\n    else\n        set size to (100) %\n    end\nend\n\n@Objeto2\n\nwhen flag clicked\nhide\n\nshow\n\nwhen flag clicked\nset [level v] to [0]\n\nwhen backdrop switches to [fondo2 v]\nshow\nsay [Hello,you killed ]\nif on edge, bounce\nset rotation style [don't rotate v]\ngo to x: (16) y: (8)\nglide (1) secs to x: (-79) y: (82)\nglide (1) secs to x: (-184) y: (9)\nglide (1) secs to x: (-274) y: (69)\nglide (1) secs to x: (-333) y: (9)\nglide (1) secs to x: (-142) y: (4)\nglide (1) secs to x: (-276) y: (101)\nglide (1) secs to x: (-321) y: (8)\nglide (1) secs to x: (-165) y: (164)\nglide (1) secs to x: (-6) y: (16)\nglide (1) secs to x: (-319) y: (11)\nglide (1) secs to x: (-83) y: (43)\nglide (1) secs to x: (-221) y: (132)\nhide\nswitch backdrop to (fondo3 v)\n\nwait (13) seconds\n\nwhen backdrop switches to [fondo2 v]\nshow\n\n@Objeto3\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [fondo2 v]\nshow\n\nwhen backdrop switches to [fondo3 v]\nhide\nstart sound [pop v]\n\n@Objeto4\n\nwhen backdrop switches to [fondo2 v]\nshow\nrepeat (18)\n    go to x: (30) y: (26)\n    glide (1) secs to x: (-351) y: (23)\nend\nhide\n\nwhen flag clicked\nhide\n\n