Apps 2 - Platformer

Instructions: https://scratch.mit.edu/projects/874820085\n新作です良かったら見てください

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nrepeat (10)\n    play sound [Title screen v] until done\nend\n\nwhen I receive [start game v]\nswitch backdrop to (2 v)\n\nwhen backdrop switches to [19 v]\n\nbroadcast (end v)\n\nwhen I receive [next level v]\nnext backdrop\n\n@Sprite3\n\nwhen flag clicked\nhide\nbroadcast (start game v)\n\ngo to x: (0) y: (0)\ngo to [front v] layer\n\nshow\n\nset [ghost v] effect to (100)\nrepeat (5)\n    change [ghost v] effect by (-20)\nend\nstart sound [E trumpet v]\nwait (1) seconds\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nhide\n\nwhen I receive [end v]\n\ngo to [front v] layer\n\nset [ghost v] effect to (100)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nstop [all v]\n\n@Sprite1\n\nwhen I receive [start game v]\nshow\ngo to x: (-200) y: (-20)\nswitch costume to (costume3 v)\nset size to (150) %\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    change [yv v] by (-0.5)\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    set [xv v] to ((XV) * (0.9))\n    change x by (XV)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change y by (1)\n                            if <touching color (#000000)?> then\n                                change y by (-6)\n                                if <key (up arrow v) pressed?> then\n                                    set [yv v] to [10]\n                                    if <(XV) > [0]> then\n                                        set [xv v] to [-10]\n                                    else\n                                        set [xv v] to [10]\n                                    end\n                                else\n                                    change x by ((XV) * (-1))\n                                    set [xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (YV)\n    if <touching color (#000000)?> then\n        change y by ((YV) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#000000)?> and <key (up arrow v) pressed?>> then\n        set [yv v] to [8]\n    end\n    if <[235] < (x position)> then\n        change [level v] by (1)\n        set size to (150) %\n        broadcast (next level v)\n        go to x: (-200) y: (-20)\n        if <(level) = [6]> then\n            go to x: (-200) y: (50)\n        end\n    end\n    if <touching color (#a97200)?> then\n        go to x: (-200) y: (-20)\n    end\n    if <touching color (#f346ff)?> then\n        set [yv v] to [11]\n    end\n    if <touching color (#00ff55)?> then\n        set size to (75) %\n    end\n    if <key (r v) pressed?> then\n        go to x: (-200) y: (50)\n    end\n    change y by (0.5)\nend\n\nwhen I receive [start game v]\nforever\n    if <<touching color (#ff9400)?> and <(backdrop [name v]) = [9]>> then\n        go to x: (120) y: (-20)\n    end\n    if <<touching color (#ff9400)?> and <(backdrop [name v]) = [10]>> then\n        go to x: (120) y: (-20)\n    end\n    if <<touching color (#ff9400)?> and <(backdrop [name v]) = [14]>> then\n        go to x: (120) y: (-20)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume3 v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\n\n