Pixel Jump~A Platformer

Instructions: PART 5: https://scratch.mit.edu/projects/870636542\n\n\nPART 1: https://scratch.mit.edu/projects/866823927\nPART 2: https://scratch.mit.edu/projects/867468982\nPART 4: https://scratch.mit.edu/projects/871680370\nPART 5:[TRAILER] \n:https://scratch.mit.edu/projects/869956355\nA and D : move                                                      :)\nW or SPACE : jump.                                              :)\n_______________________________________:)\nThis project is related to ''MOON PLATFORMER'':)\nAND HERE I took the main idea  of the game.     :)\nI didn't want to steal something or offend              :)\nsomeone\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n#games #trending #all #art #music #game #platformer #lights #platformers #games #trending #all #art #music #game #platformer #lights #platformers #games #trending #all #art #music #game #platformer #lights #platformers #games #trending #all #art #music #game #platformer #lights #platformers #games #trending #all #art #music

@Stage\n\nwhen flag clicked\nswitch backdrop to (colour v)\nforever\n    change [color v] effect by (1)\nend\n\nwhen I receive [platformer actiate v]\nclear graphic effects\nswitch backdrop to (white v)\n\n@player\n\nwhen flag clicked\nhide\ngo to x: (-210) y: (198)\npoint in direction (90)\nset [level v] to [1]\nset [death v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    Platform [3.5] [11] [0.6] [-1]\n    if <<(y position) < [-178]> and <touching (_edge_ v)?>> then\n        set [xv v] to [0]\n        set [yv v] to [0]\n        go to x: (-210) y: (198)\n    end\n    if <<(x position) > [237]> and <touching (_edge_ v)?>> then\n        change [level v] by (1)\n        set [xv v] to [0]\n        set [yv v] to [0]\n        go to x: (-210) y: (198)\n    end\nend\n\ndefine Platform (move) (jump) (fric) (grav)\nswitch costume to (idle v)\nchange y by (Yv)\nif <touching (ground v)?> then\n    repeat ([abs v] of (Yv) )\n        if <touching (ground v)?> then\n            change y by ((([abs v] of (Yv) ) / (Yv)) * (-1))\n        end\n    end\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <not <(Yv) > [0]>>> then\n        set [yv v] to (jump)\n    else\n        set [yv v] to [0]\n    end\nelse\n    change [yv v] by (grav)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [xv v] by (move)\n    point in direction (90)\nend\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [xv v] by ((move) * (-1))\n    point in direction (-90)\nend\nchange x by (Xv)\nif <touching (ground v)?> then\n    set [slope v] to (y position)\n    repeat (([abs v] of (Xv) ) + (1))\n        if <touching (ground v)?> then\n            change y by (1)\n        end\n    end\n    if <touching (ground v)?> then\n        set y to (Slope)\n        repeat ([ceiling v] of ([abs v] of (Xv) ) )\n            if <touching (ground v)?> then\n                change x by ((([abs v] of (Xv) ) / (Xv)) * (-1))\n            end\n        end\n        set [xv v] to [0]\n    end\nend\nset [xv v] to ((Xv) * (fric))\nswitch costume to (idle v)\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n    switch costume to (walk)\nend\nif <(Yv) > [1]> then\n    switch costume to (jump v)\nend\nif <(Yv) < [-2]> then\n    switch costume to (fall v)\nend\nif <(Level) = [6]> then\n    hide\nend\n\nwhen flag clicked\nset [walk v] to [5]\nforever\n    change [walk v] by (1)\n    if <(walk) > [8]> then\n        set [walk v] to [5]\n    end\n    wait (0.) seconds\nend\n\nwhen I receive [little man come on down v]\nshow\n\n@Ground\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\nend\n\nwhen flag clicked\nshow\ngo to [back v] layer\nset [ghost v] effect to (100)\n\n@visual level\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen I receive [platformer actiate v]\nwait (1) seconds\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nbroadcast (little man come on down v) and wait\n\n@thumby\n\nwhen flag clicked\nswitch costume to (designaplatformer v)\nset [ghost v] effect to (100)\ngo to [front v] layer\n\n@title\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [brightness v] effect to (0)\nshow\ngo to x: (0) y: (93)\npoint in direction (90)\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (10)) + (90))\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [loading screeeen v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@shapes\n\nwhen I start as a clone\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (90)\nset size to (0) %\ngo to x: (pick random (-240) to (240)) y: (pick random (-180) to (180))\ngo to [back v] layer\nshow\nrepeat (20)\n    change [ghost v] effect by (-1)\n    change size by (1)\n    turn right (2) degrees\n    change y by (1)\n    if <(x position) < [0]> then\n        change x by (-1)\n    else\n        change x by (1)\n    end\nend\nrepeat (20)\n    change [ghost v] effect by (1)\n    change size by (1)\n    turn right (2) degrees\n    change y by (1)\n    if <(x position) < [0]> then\n        change x by (-1)\n    else\n        change x by (1)\n    end\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    wait (0.05) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [platformer actiate v]\nhide\n\n@Play button\n\nwhen flag clicked\npoint in direction (90)\n\nwhen flag clicked\nset [brightness v] effect to (0)\nshow\ngo to x: (0) y: (-116)\npoint in direction (90)\nforever\n    point in direction ((([sin v] of ((timer) * (-200)) ) * (10)) + (90))\nend\n\nwhen this sprite clicked\nbroadcast (LOADING SCREEEEN v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen flag clicked\nforever\n    set size to ((Size) + ((100) + ((50) * (<touching (mouse-pointer v)?> / (5))))) %\nend\n\n@loading thing 2\n\nwhen flag clicked\nhide\n\nwhen I receive [loading screeeen v]\nshow\ngo to x: (0) y: (0)\nrepeat (75)\n    turn left (15) degrees\nend\nbroadcast (Platformer ACTIATE v)\nhide\n\n@trail\n\nwhen I start as a clone\nshow\nset size to (50) %\nforever\n    switch costume to (costume1 v)\n    set [ghost v] effect to (0)\n    go to (mouse-pointer v)\n    repeat (10)\n        wait (0.05) seconds\n        next costume\n        change [ghost v] effect by (5)\n        change [color v] effect by (10)\n    end\n    wait (.5) seconds\n    delete this clone\nend\n\nwhen flag clicked\nhide\ngo to [back v] layer\nforever\n    set size to (50) %\n    create clone of (_myself_ v)\n    wait (0) seconds\nend\n\n@HEART+ STAR\n\nwhen flag clicked\nset [ghost v] effect to (60)\ngo to x: (194) y: (-152)\nforever\n    point in direction ((([sin v] of ((timer) * (320)) ) * (15)) + (90))\nend\n\n@backup backgrounds\n\nwhen flag clicked\nhide\n\n@backup Loady thingy\n\nwhen flag clicked\nhide\n\n@music\n\nwhen flag clicked\nforever\n    set size to ((Size) + ((100) + ((50) * (<touching (mouse-pointer v)?> / (5))))) %\nend\n\nwhen flag clicked\nshow\ngo to x: (206) y: (152)\nswitch costume to (on v)\nplay sound (pick random (1) to (2)) until done\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    switch costume to (off v)\n    stop all sounds\nelse\n    switch costume to (on v)\n    broadcast (music v)\nend\n\nwhen I receive [music v]\nplay sound (pick random (1) to (2)) until done\n\n