MR.Stick Man Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [start v]\nswitch backdrop to (backdrop1 v)\n\n@Player\n\nwhen flag clicked\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        set rotation style [left-right v]\n        switch costume to (costume1 v)\n        change [x v] by (0.75)\n        point in direction (90)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n        set rotation style [left-right v]\n        switch costume to (costume2 v)\n        point in direction (-90)\n        change [x v] by (-0.75)\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (-221) y: (-114)\nhide\n\nwhen flag clicked\nforever\n    clear graphic effects\nend\n\nwhen I receive [message1 v]\ngo to x: (-221) y: (-114)\nchange [level v] by (1)\n\nwhen I receive [message2 v]\ngo to x: (-221) y: (-114)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen I receive [start v]\nset rotation style [left-right v]\nshow\nset [level v] to [1]\npoint in direction (90)\nswitch costume to (costume1 v)\nforever\n    switch costume to (costume3 v)\n    change [y v] by (-0.5)\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 y by (1)\n                            if <touching (ground v)?> then\n                                change y by (-6)\n                                if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n                                    set [y v] to [10]\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                else\n                                    change x by ((x) * (-1))\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\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    change y by (-0.5)\n    if <<touching (ground v)?> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\n    if <(x position) > [230]> then\n        go to x: (-221) y: (-114)\n        broadcast (message1 v)\n    end\n    if <(y position) < [-175]> then\n        go to x: (-221) y: (-114)\n    end\n    if <touching (kah-nee-fay2 v)?> then\n        go to x: (-221) y: (-114)\n    end\n    switch costume to (costume1 v)\nend\n\n@Ground\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\nnext costume\n\nwhen I receive [start v]\nswitch costume to (costume1 v)\nshow\ngo to [front v] layer\n\ngo to [front v] layer\n\n@Kah-nee-fay2\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\nnext costume\n\nwhen I receive [start v]\nshow\nswitch costume to (costume1 v)\n\nhide\n\n@Music\n\nwhen flag clicked\n\nwhen I receive [start v]\nset volume to (50) %\nstart sound [mariah-carey-all-i-want-for-christmas-is-you-official-music-video-youtubemp3free v]\nforever\n    if <key (m v) pressed?> then\n        clear sound effects\n        stop all sounds\n    end\n    if <key (u v) pressed?> then\n        start sound [mariah-carey-all-i-want-for-christmas-is-you-official-music-video-youtubemp3free v]\n    end\nend\n\n@Skip and Restart\n\nwhen flag clicked\nforever\n    if <key (s v) pressed?> then\n        broadcast (message1 v)\n        wait (.5) seconds\n    end\n    if <key (r v) pressed?> then\n        broadcast (message2 v)\n        wait (.5) seconds\n    end\nend\n\n@Particles\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\ngo to [back v] layer\ngo to x: (pick random (-300) to (240)) y: (300)\nset size to (pick random (1) to (5)) %\nrepeat until <<touching (ground v)?> or <(y position) < [-150]>>\n    change y by (-5)\nend\ndelete this clone\n\nwhen I receive [start v]\ngo to [back v] layer\nforever\n    create clone of (_myself_ v)\nend\n\n@Story Intro\n\nwhen flag clicked\nhide\nforever\n    go to x: (0) y: (0)\nend\n\nwhen I receive [intro v]\nshow\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nwait (2) seconds\nnext costume\nwait (2) seconds\nnext costume\nwait (2) seconds\nnext costume\nwait (2) seconds\nswitch costume to (costume5 v)\nbroadcast (Start v)\n\n@Intro\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen I start as a clone\ngo to x: (0) y: (0)\nswitch costume to (back v)\nset size to (0) %\nstart sound [brrrr \(Its cold\) v]\nrepeat (20)\n    change size by (((90) - (size)) / (4))\n    go [backward v] (1) layers\nend\nwait (1) seconds\ndelete this clone\n\nwhen flag clicked\nshow\nswitch costume to (logo2 v)\nstart sound [Spectre2 v]\npoint in direction (90)\nset [size vel v] to [0]\nset size to (50) %\ngo to x: (0) y: (0)\nrepeat (58)\n    set [size vel v] to (((size vel) * (0.8)) + (((40) - (size)) * (0.2)))\n    change size by ((size vel) + (50))\n    go to [front v] layer\nend\nrepeat (50)\n    go to [front v] layer\nend\nset [x v] to [0]\nrepeat (100)\n    change [ghost v] effect by (5)\n    change x by (X)\n    change [x v] by (1)\n    turn right (15) degrees\nend\nwait (0.5) seconds\nbroadcast (Intro v)\nstop [other scripts in sprite v]\n\nwhen flag clicked\nwait (1.8) seconds\ncreate clone of (_myself_ v)\nwait (1) seconds\nswitch costume to (fully v)\n\n@TB2\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\n\n@YEET\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\nnext costume\n\nwhen I receive [start v]\nshow\nswitch costume to (costume1 v)\ngo to [back v] layer\n\nhide\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (0) y: (-30)\nswitch costume to (costume1 v)\nhide\ngo to [back v] layer\nforever\n    if <(level) = [1]> then\n        switch costume to (costume1 v)\n    end\n    if <(level) = [13]> then\n        switch costume to (costume2 v)\n    end\n    if <(level) = [14]> then\n        switch costume to (costume3 v)\n    end\n    if <(level) = [15]> then\n        switch costume to (costume1 v)\n    end\n    if <(level) = [19]> then\n        switch costume to (costume3 v)\n    end\n    if <(level) = [20]> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [start v]\nshow\n\n