School Stuck (Playground)- A platformer #School #First #Platformer

Instructions: ⫸ Part 2 is out! https://scratch.mit.edu/projects/640702790/\n◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉◉\nThis is my First Platformer\nCatchup my top projects on this studio- https://scratch.mit.edu/studios/31066693/\n◉◉◉◉◉◉◉◉◉◉INSTRUCTIONS◉◉◉◉◉◉◉◉◉◉\n⫸Arrow keys to move\n⫸ Don't touch little cubes or mud\n⫸Bounce on the trampolines\n⫸Walk on the ground XD\n⫸ Smash the ♥ and ⭐ and also the follow button for more! :D\n\n◉◉◉◉◉◉◉◉◉◉◉◉◉FACTS◉◉◉◉◉◉◉◉◉◉◉◉◉\n⫸ Story inside -\n                         -\n⨞ -    -    -     -   -\n⫸ Based on school life\n⫸ A sequel\n\nPropose this to be featured here- https://scratch.mit.edu/studios/28715018/

@Stage\n\nwhen flag clicked\nbroadcast (Run Platformer v)\n\nwhen I receive [run platformer v]\nforever\n    play sound [The Script - Hall Of Fame v] until done\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [12]> or <(Level) = [13]>> then\n        switch backdrop to (neon v)\n    else\n        switch backdrop to (fence v)\n    end\nend\n\nwhen flag clicked\n\n\n    switch backdrop to (neon v)\nend\n\n\n\n@Player\n\nwhen I receive [run platformer v]\nforever\n    if <<[240] < (x position)> and <(dead?) = [0]>> then\n        broadcast (NAXT LEVEL v)\n        change [level v] by (1)\n        Reset - Setup\n    end\nend\n\nwhen flag clicked\nhide variable [xv v]\nhide variable [dead? v]\nhide variable [level v]\nhide variable [yv v]\nhide\n\nwhen I receive [run platformer v]\nset [dead? v] to [0]\nset [level v] to [1]\nset size to (80) %\nReset - Setup\nforever\n    go to [front v] layer\n    if <<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> and <(dead?) = [0]>> then\n        switch costume to (1 v)\n        change [xv v] by (1)\n    end\n    if <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> and <(dead?) = [0]>> then\n        switch costume to (2 v)\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (.9))\n    change x by (Xv)\n    if <touching (ground v)?> then\n        change y by (2)\n        if <touching (ground v)?> then\n            change y by (2)\n        end\n        if <touching (ground v)?> then\n            change y by (2)\n            if <touching (ground v)?> then\n                change y by (2)\n                if <touching (ground v)?> then\n                    change y by (2)\n                    if <touching (ground v)?> then\n                        change x by ((Xv) * (-2))\n                        change y by (-5)\n                        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>>> then\n                            if <(Xv) > [0]> then\n                                set [xv v] to [-5]\n                            else\n                                set [xv v] to [5]\n                            end\n                            set [yv v] to [13]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-0.8)\n    change y by (Yv)\n    if <touching (ground v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (10))>>>> then\n            set [yv v] to [12]\n        end\n    end\n    change y by (1)\n    if <<touching (childy- spikes v)?> or <touching (mud v)?>> then\n        Death\n    end\n    if <(y position) < [-180]> then\n        Death\n    end\n    if <touching (bouncy v)?> then\n        set [yv v] to [15]\n    end\nend\n\nwhen I receive [run platformer v]\nset [level v] to [1]\nforever\n    create clone of (_myself_ v)\nend\n\ndefine Reset - Setup\nset [dead? v] to [0]\nset [xv v] to [0]\nset [yv v] to [0]\npoint in direction (90)\ngo to x: (-201) y: (30)\nclear graphic effects\nswitch costume to (1 v)\nset size to (80) %\nshow\n\ndefine Death\nset [dead? v] to [1]\nrepeat (25)\n    turn right (5) degrees\n    change [ghost v] effect by (4)\n    change size by (-4)\nend\nReset - Setup\n\nwhen I start as a clone\nswitch costume to (clone v)\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-1.5)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <<(Level) = [12]> or <(Level) = [13]>> then\n        switch costume to (costume2 v)\n    end\nend\n\nwhen I receive [skip v]\n\n@ground\n\nwhen I receive [run platformer v]\nshow\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\nchange [level v] by (1)\n\n@Mud\n\nwhen flag clicked\nhide\n\nwhen I receive [run platformer v]\nshow\ngo to [front v] layer\nforever\n    switch costume to (Level)\nend\n\n@Childy- Spikes\n\nwhen I receive [run platformer v]\nshow\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nhide\n\n@bouncy\n\nwhen flag clicked\nhide\ngo to x: (-31) y: (-157)\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        go to x: (-99) y: (-69)\n        show\n        if <touching (player v)?> then\n            Bouncy Animation\n        end\n    end\n    if <(Level) = [6]> then\n        hide\n    end\n    if <(Level) = [7]> then\n        hide\n    end\n    if <(Level) = [8]> then\n        hide\n    end\n    if <(Level) = [9]> then\n        go to x: (45) y: (-69)\n        show\n        if <touching (player v)?> then\n            Bouncy Animation\n        end\n    end\n    if <(Level) = [10]> then\n        hide\n    end\n    if <(Level) = [10]> then\n        go to x: (45) y: (-69)\n        show\n        if <touching (player v)?> then\n            Bouncy Animation\n        end\n    end\n    if <(Level) = [11]> then\n        hide\n    end\n    if <(Level) = [12]> then\n        hide\n    end\n    if <(Level) = [13]> then\n        hide\n    end\n    if <(Level) = [14]> then\n        go to x: (-158) y: (-69)\n        show\n        if <touching (player v)?> then\n            Bouncy Animation\n        end\n    end\n    if <(Level) = [15]> then\n        go to x: (67) y: (-69)\n        show\n        if <touching (player v)?> then\n            Bouncy Animation\n        end\n    end\nend\n\ndefine Bouncy Animation\nstart sound [jump v]\ngo to [front v] layer\nrepeat (6)\n    wait (.01) seconds\n    next costume\nend\n\n@Letter\n\nwhen flag clicked\nhide\n\nwhen I receive [run platformer v]\nshow\nforever\n    switch costume to (Level)\nend\n\n@Sprite1\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    go to [front v] layer\n    show\n    go to [front v] layer\nend\n\ngo to [front v] layer\n\n@Skip\n\nwhen this sprite clicked\nchange [level v] by (1)\nbroadcast (Skip v)\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (-10)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen flag clicked\nset [brightness v] effect to (0)\ngo to x: (0) y: (0)\nshow\n\nwhen [timer v] > (0)\nforever\n    if <(Level) = [15]> then\n        hide\n    else\n        show\n    end\nend\n\n