Easy Platformer

Instructions: Night Mode : https://scratch.mit.edu/projects/703022444/\n\n\nHey... all levels are possible :p \nFr : eh... tous les niveaux sont possible :p\n\n! No Advertising In Comments !\nChillax, it's easy. (chill + relax = chillax)\nP.S : all levels are possible\narrow or wasd keys to move\nmobile friendly(deadly)\n❤️ and ⭐\n#2 on explore(or trending)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nhehe boi

@Stage\n\nwhen I receive [alert v]\nswitch backdrop to (arrière-plan1 v)\n\n@Sprite1\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    go to [front v] layer\n    show\nend\n\n@Platforms2\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\nwhen backdrop switches to [arrière-plan1 v]\nhide\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        show\n    end\n    if <(Level) = [6]> then\n        hide\n    end\nend\n\n@Lava\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    repeat (20)\n        change y by (0.5)\n    end\n    repeat (20)\n        change y by (-0.5)\n    end\nend\n\nwhen flag clicked\nset y to (-115)\nforever\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [3]> then\n        show\n        switch costume to (costume1 v)\n    end\n    if <(Level) = [4]> then\n        show\n        switch costume to (level 4 v)\n        set x to (0)\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [6]> then\n        hide\n    end\n    if <(Level) = [7]> then\n        show\n        switch costume to (costume2 v)\n        go to x: (110) y: (14)\n    end\n    if <(Level) = [8]> then\n        switch costume to (level 4 v)\n        show\n        go to x: (180) y: (-180)\n    end\n    if <(Level) = [9]> then\n        hide\n    end\n    if <(Level) = [10]> then\n        switch costume to (costume1 v)\n        show\n        go to x: (0) y: (-70)\n    end\n    if <(Level) = [11]> then\n        hide\n    end\n    if <(Level) = [12]> then\n        switch costume to (costume2 v)\n        show\n        go to x: (180) y: (-80)\n    end\n    if <(Level) = [13]> then\n        switch costume to (costume1 v)\n        show\n        go to x: (0) y: (-100)\n    end\n    if <(Level) = [15]> then\n        hide\n    end\nend\n\nset y to (-5)\nforever\n    stop [this script v]\nend\n\npoint in direction (90)\n\npoint in direction (90)\n\n@notif\n\nwhen flag clicked\ngo to x: (0) y: (50)\nhide\nwait (pick random (30) to (60)) seconds\nshow\nrepeat until <(y position) < [6]>\n    change y by (((5) - (y position)) / (6))\nend\nwait (3.5) seconds\nrepeat until <(y position) > [49.5]>\n    change y by (((y position) + (5)) / (5))\nend\nhide\nforever\n    wait (pick random (14) to (26)) seconds\n    show\n    repeat until <(y position) < [6]>\n        change y by (((5) - (y position)) / (6))\n    end\n    wait (3.5) seconds\n    repeat until <(y position) > [49.5]>\n        change y by (((y position) + (5)) / (5))\n    end\n    hide\nend\n\nwhen I receive [alert v]\nstop [other scripts in sprite v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nhide\n\nwhen I receive [play v]\ngo to [front v] layer\n\n@Ennemi\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        point in direction (90)\n        show\n        go to x: (0) y: (-70)\n    end\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [8]> then\n        point in direction (180)\n        show\n        go to x: (65) y: (10)\n    end\n    if <(Level) = [9]> then\n        show\n        point in direction (90)\n        go to x: (-120) y: (-75)\n    end\n    if <(Level) = [10]> then\n        hide\n    end\nend\n\n@Danger\n\nwhen flag clicked\nforever\n    turn right (10) degrees\n    go to [back v] layer\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        show\n        go to x: (0) y: (-15)\n    end\n    if <(Level) = [3]> then\n        show\n        go to x: (220) y: (5)\n    end\n    if <(Level) = [4]> then\n        show\n        go to x: (110) y: (5)\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [6]> then\n        show\n        go to x: (60) y: (75)\n    end\n    if <(Level) = [7]> then\n        hide\n    end\n    if <(Level) = [11]> then\n        show\n        go to x: (-117) y: (-40)\n    end\n    if <(Level) = [12]> then\n        show\n        go to x: (-90) y: (-70)\n    end\n    if <(Level) = [14]> then\n        hide\n    end\n    if <(Level) = [16]> then\n        show\n        go to x: (-120) y: (-60)\n    end\n    if <(Level) = [17]> then\n        hide\n    end\nend\n\n@Platforms\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\n@Player\n\nwhen flag clicked\ngo to x: (-200) y: (-45)\nset size to (100) %\nset [level v] to [1]\nset [xv v] to [0]\nset [yv v] to [0]\nhide variable [level v]\nhide variable [xv v]\nhide variable [yv v]\nforever\n    change [yv v] by (-1)\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [xv v] by (0.9)\n    end\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [xv v] by (-0.9)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (platforms v)?> then\n        change y by (1)\n    end\n    if <touching (platforms v)?> then\n        change y by (1)\n    end\n    if <touching (platforms v)?> then\n        change y by (1)\n    end\n    if <touching (platforms v)?> then\n        change y by (1)\n    end\n    if <touching (platforms v)?> then\n        change y by (-4)\n        change x by ((Xv) * (-1))\n        if <<<key (space v) pressed?> or <key (up arrow v) pressed?>> or <mouse down?>> then\n            set [yv v] to [14]\n            if <(Xv) > [0]> then\n                set [xv v] to [-10]\n            else\n                set [xv v] to [10]\n            end\n        end\n    end\n    change y by (Yv)\n    if <touching (platforms v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <mouse down?>> and <touching (platforms v)?>> then\n        change [yv v] by (14)\n    end\n    change y by (1)\n    if <(x position) > [240]> then\n        change [level v] by (1)\n        go to x: (-200) y: (-45)\n    end\n    if <<<touching (ennemi v)?> or <<touching (danger v)?> or <<<touching (ennemi2 v)?> or <touching (ennemi3 v)?>> or <<touching (danger2 v)?> or <touching (lava v)?>>>>> or <(y position) < [-175]>> then\n        go to x: (-200) y: (-45)\n    end\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [skip that level v]\ngo to x: (-200) y: (-45)\n\n@Danger2\n\nwhen flag clicked\nforever\n    turn right (10) degrees\n    go to [back v] layer\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        show\n        go to x: (100) y: (-95)\n    end\n    if <(Level) = [3]> then\n        show\n        go to x: (-25) y: (-95)\n    end\n    if <(Level) = [4]> then\n        show\n        go to x: (-40) y: (40)\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [6]> then\n        show\n        go to x: (110) y: (107)\n    end\n    if <(Level) = [7]> then\n        show\n        go to x: (-169) y: (20)\n    end\n    if <(Level) = [8]> then\n        hide\n    end\n    if <(Level) = [9]> then\n        hide\n    end\n    if <(Level) = [12]> then\n        show\n        go to x: (-90) y: (150)\n    end\n    if <(Level) = [14]> then\n        hide\n    end\nend\n\n@Ennemi2\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [3]> then\n        hide\n    end\n    if <(Level) = [4]> then\n        hide\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [6]> then\n        hide\n    end\n    if <(Level) = [7]> then\n        show\n        go to x: (-220) y: (120)\n    end\n    if <(Level) = [8]> then\n        show\n        go to x: (110) y: (-90)\n    end\n    if <(Level) = [9]> then\n        show\n        go to x: (60) y: (-75)\n    end\n    if <(Level) = [10]> then\n        hide\n    end\nend\n\n@Ennemi3\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [3]> then\n        hide\n    end\n    if <(Level) = [4]> then\n        hide\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [6]> then\n        hide\n    end\n    if <(Level) = [7]> then\n        show\n        go to x: (-120) y: (119)\n    end\n    if <(Level) = [8]> then\n        show\n        go to x: (0) y: (40)\n    end\n    if <(Level) = [9]> then\n        go to x: (-30) y: (-75)\n        show\n    end\n    if <(Level) = [10]> then\n        hide\n    end\nend\n\n@Sprite2\n\nwhen this sprite clicked\nbroadcast (Skip that level v)\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        show\n    end\n    if <(Level) = [16]> then\n        hide\n    end\nend\n\n@Sprite3\n\nwhen I receive [skip that level v]\nchange [level v] by (1)\n\n@Player2\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        set size to (100) %\n        go to x: (-170) y: (110)\n        show\n    end\n    if <(Level) = [4]> then\n        hide\n    end\n    if <(Level) = [6]> then\n        show\n    end\n    if <(Level) = [7]> then\n        hide\n    end\n    if <(Level) = [8]> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (30)\n    change size by (25)\n    change [ghost v] effect by (10)\n    change [brightness v] effect by (10)\nend\ndelete this clone\n\n@Sprite4\n\nif <(Level) = [1]> then\n    point in direction (90)\n    show\n    go to x: (0) y: (-70)\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [3]> then\n        hide\n    end\n    if <(Level) = [4]> then\n        hide\n    end\n    if <(Level) = [14]> then\n        switch costume to (costume1 v)\n        show\n        go to x: (40) y: (0)\n    end\n    if <(Level) = [15]> then\n        show\n        switch costume to (costume2 v)\n        go to x: (-50) y: (90)\n    end\n    if <(Level) = [16]> then\n        hide\n    end\nend\n\n@Sprite5\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [2]> then\n        hide\n    end\n    if <(Level) = [3]> then\n        hide\n    end\n    if <(Level) = [4]> then\n        hide\n    end\n    if <(Level) = [5]> then\n        hide\n    end\n    if <(Level) = [6]> then\n        hide\n    end\n    if <(Level) = [17]> then\n        show\n    end\nend\n\n