Shadow platformer 

Instructions: Normal platformer controls\nYou can advertise if you ❤️ and ⭐ \n\nIf you liked this check out my other platformer \nhttps://scratch.mit.edu/projects/690998065/\nhttps://scratch.mit.edu/projects/655024392/

@Stage\n\nwhen flag clicked\nforever\n    if <(lvl) = [11]> then\n        switch backdrop to (backdrop2 v)\n    else\n        switch backdrop to (backdrop1 v)\n    end\nend\n\n@Ground\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (lvl)\nend\n\n@Skip\n\nwhen flag clicked\ngo to [front v] layer\nset size to (60) %\ngo to x: (-200) y: (-152)\nforever\n    if <(lvl) = [11]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen this sprite clicked\nchange [lvl v] by (1)\nbroadcast (Blabla v)\n\n@Sprite4\n\nwhen flag clicked\n\nwhen flag clicked\nshow\nforever\n    switch costume to (lvl)\nend\n\n@Lava\n\nwhen flag clicked\nforever\n    show\n    switch costume to (lvl)\n    set y to (([sin v] of ((timer) * (100)) ) * (10))\nend\n\n@Spikes\n\nwhen flag clicked\nforever\n    show\n    go to [back v] layer\n    switch costume to (lvl)\n    if <<(lvl) = [3]> and <not <(username) = [-Morni-]>>> then\n        switch costume to (3 v)\n        set [ghost v] effect to (0)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\n@Player\n\nrepeat (5)\n    switch costume to (costume 2 v)\n    change size by (-4)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nStart\nforever\n    create clone of (_myself_ v)\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        create clone of (_myself_ v)\n        change [x v] by (-1)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        create clone of (_myself_ v)\n        change [x v] by (1)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        broadcast (shadow v)\n        create clone of (_myself_ v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        create clone of (_myself_ 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 x by ((X) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                                if <(X) > [0]> then\n                                    set [x v] to [-7]\n                                else\n                                    set [x v] to [7]\n                                end\n                                set [y v] to [14]\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            set [y v] to [15]\n            point in direction ((Y) * (0.5))\n        end\n    end\n    change y by (1)\n    change [y v] by (-1)\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    hide variable [x v]\n    if <(x position) > [230]> then\n        change [lvl v] by (1)\n        set [y v] to [0]\n        set [x v] to [0]\n        go to x: (-190) y: (0)\n    end\n    if <<<touching (lava v)?> or <(y position) < [-170]>> or <touching (spikes v)?>> then\n        go to x: (-190) y: (40)\n    end\n    if <touching (trampoline v)?> then\n        set [y v] to [19]\n    end\nend\n\ndefine Start\nset [lvl v] to [1]\nset [x v] to [0]\nset [y v] to [0]\nset size to (40) %\ngo to x: (-190) y: (50)\nset drag mode [not draggable v]\n\nwhen I receive [blabla v]\ngo to x: (-190) y: (40)\n\nwhen flag clicked\nforever\n    switch costume to (normal2 v)\n    if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        switch costume to (up2 v)\n        broadcast (shadow v)\n    end\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <<key (a v) pressed?> or <key (left arrow v) pressed?>>> then\n        switch costume to (left2 v)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        switch costume to (right2 v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        switch costume to (up-right v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        switch costume to (up-left v)\n    end\nend\n\nwhen I start as a clone\nhide\n\nwhen flag clicked\nforever\n    play sound [Superboy v] until done\nend\n\nshow\n\nhide\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <touching (sprite2 v)?> then\n        go to x: (-190) y: (40)\n    end\nend\n\n@Player2\n\ngo [backward v] (1) layers\n\nwhen flag clicked\nforever\n    go to (player v)\n    set [brightness v] effect to (-100)\n    set [ghost v] effect to (50)\n    go to [back v] layer\nend\n\nwhen flag clicked\n\nwhen I receive [shadow v]\n\n@Front Cover \n\nwhen flag clicked\nforever\n    show\n    go to x: (17) y: (7)\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n