Error platformer/v1.0

Instructions: 矢印キーで操作します

@Stage\n\n@Player\n\nwhen flag clicked\nshow\nrstart\nforever\n    sous\nend\n\ndefine rstart\nset size to (125) %\ngo to x: (-200) y: (-70)\nset [y v] to [0]\nset [x v] to [0]\nset rotation style [left-right v]\npoint in direction (90)\n\ndefine sous\nchange [y v] by (-1)\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <[0] < (mouse x)>>>> then\n    if <(level) = [8]> then\n        change [x v] by (1)\n        point in direction (90)\n    else\n        change [x v] by (1)\n        point in direction (90)\n    end\nend\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>>> then\n    if <(level) = [8]> then\n        change [x v] by (-1)\n        point in direction (90)\n    else\n        change [x v] by (-1)\n        point in direction (90)\n    end\nend\nset [x v] to ((X) * (0.88))\nchange x by (X)\nrepeat (8)\n    if <touching (じ v)?> then\n        change y by (1.1)\n    end\nend\nif <touching (じ v)?> then\n    change x by (() - (X))\n    change y by (-8.8)\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <[0] < (mouse y)>>>> then\n        set [y v] to [11]\n        set [x v] to ((7) - ((14) * <[0] < (X)>))\n    end\nend\nchange y by (Y)\nif <touching (じ v)?> then\n    change y by (() - (Y))\n    set [y v] to [0]\nend\nchange y by (-1)\nif <touching (じ v)?> then\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <[0] < (mouse y)>>>> then\n        set [y v] to [13]\n    end\nend\nchange y by (1)\nif <[235] < (x position)> then\n    rstart\n    change [level v] by (1)\nend\nif <<(y position) < [-180]> or <touching (障害物 v)?>> then\n    rstart\nend\nif <(level) = [9]> then\n    if <touching (bounce v)?> then\n        if <<touching color (#ff0b0b)?> or <touching color (#ff0505)?>> then\n            set [y v] to [20]\n            broadcast (t v)\n        else\n            rstart\n        end\n    end\nelse\n    if <touching (bounce v)?> then\n        set [y v] to [20]\n    end\nend\n\nif <touching (bounce v)?> then\n\n\n\nwhen flag clicked\nforever\n    play sound [【Windows】RED_ZONE v] until done\nend\n\nwhen flag clicked\n\nset [time タイム v] to [0]\nforever\n\nif <(制限) = [50]> then\n    wait (0.1) seconds\n    change [time タイム v] by (0.1)\nend\n\nwhen flag clicked\nwait (0.00000001) seconds\nhide variable [☁ time world record タイム世界記録 v]\nset [制限 v] to [50]\n\nforever\n\nwhen flag clicked\nwait (0.1) seconds\nforever\n    if <(level) = [10]> then\n        set [制限 v] to [0]\n        if <(☁ Time world record タイム世界記録) > (time タイム)> then\n            set [☁ time world record タイム世界記録 v] to ((round ((☁ Time world record タイム世界記録) * (10))) / (10))\n            set [☁ time world record タイム世界記録 v] to (time タイム)\n        end\n    end\nend\n\nshow variable [☁ time world record タイム世界記録 v]\n\nset [☁ time world record タイム世界記録 v] to [35]\n\n\n\nwhen flag clicked\nforever\n\n\n\nwhen flag clicked\nset [level v] to [1]\n\nshow variable [☁ time world record タイム世界記録 v]\n\nset [level v] to [9]\n\nchange [☁ time world record タイム世界記録 v] by (1)\n\nshow variable [☁ time world record タイム世界記録 v]\n\nset [☁ time world record タイム世界記録 v] to [35]\n\n@じ\n\nwhen flag clicked\nset [level v] to [1]\ngo to x: (0) y: (-104)\nforever\n    switch costume to (join (letter (1) of (level)) (letter (2) of (level)))\nend\n\ngo to x: (-180) y: (-80)\n\nswitch costume to (1 v)\n\n@障害物\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (25) y: (0)\nforever\n    switch costume to (join (letter (1) of (level)) (letter (2) of (level)))\n    if <(level) = [7]> then\n        go to x: (26) y: (-19)\n    end\n    if <(level) = [9]> then\n        go to x: (25) y: (3)\n    end\nend\n\ngo to x: (-8) y: (-76)\n\ncreate clone of (_myself_ v)\n\nset size to (80) %\n\n@sign\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (-228) y: (-88)\nforever\n    switch costume to (join (letter (1) of (level)) (letter (2) of (level)))\nend\n\nwait (0.1) seconds\n\nshow\n\ngo [forward v] (2) layers\n\n@bounce\n\nwhen flag clicked\nshow\ngo to x: (-76) y: (-84)\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    if <(level) = [9]> then\n        repeat (10)\n            move (10) steps\n            wait (0.05) seconds\n        end\n        repeat (10)\n            move (-10) steps\n            wait (0.05) seconds\n        end\n    end\nend\n\nrepeat (10)\n    move (2) steps\nend\nrepeat (10)\n    move (-2) steps\nend\nif <touching (player v)?> then\n    if <(y position) < [−40]> then\nend\n\nwhen I receive [t v]\nhide\n\nwhen flag clicked\ndelete this clone\n\nforever\n\nswitch costume to (9 v)\n\ncreate clone of (_myself_ v)\n\nrepeat (10)\n    change y by (-2)\n    change y by (2)\nend\n\nglide (0.5) secs to x: (-100) y: ()\nglide (0.5) secs to x: (-76) y: ()\n\nchange x by (-10)\n\ngo to x: (-104) y: (-84)\n\nwhen flag clicked\nforever\n    if <(level) = [10]> then\n        forever\n            hide\n        end\n    end\nend\n\nmove (x2) steps\n\nset [x2 v] to [10]\n\nset [x2 v] to [0]\n\nwhen flag clicked\nforever\n    if <(level) = [9]> then\n        repeat (10)\n            change y by (2)\n        end\n        repeat (10)\n            change y by (-2)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    switch costume to (join (letter (1) of (level)) (letter (2) of (level)))\nend\n\n@背景\n\nwhen flag clicked\ngo to x: (1) y: (0)\nwait (0.1) seconds\ngo to [back v] layer\n\n@スプライト2\n\nwhen flag clicked\nhide\n\ngo to x: (-12) y: (-5)\n\nforever\nend\n\nif <(level) = [8]> then\nelse\nend\n\nshow\nhide\nrepeat (10)\nend\n\nmove (10) steps\ngo to x: (-12) y: (-5)\n\ngo [forward v] (1) layers\n\n@サムネ\n\nwhen flag clicked\nhide\n\n@スプライト3\n\nwhen flag clicked\nhide\n\nwait (0.00001) seconds\n\nshow variable [time タイム v]\n\nchange [ghost v] effect by (25)\n\n@8DB078D0-F9ED-4873-81DF-7A39DE691DAF\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\n\ngo to x: (1) y: (40)\n\ngo to [front v] layer\n\nset [☁ time world record タイム世界記録 v] to [50]\n\nshow\n\nshow\n\n@スプライト4\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\n\n@スプライト5\n\nwhen flag clicked\nhide\n\n