SUPER MARIO  PLATFORMER

Instructions: 矢印キーまたは画面タップで移動できます\nスペースキーで音楽を消したりつけたりできます\nモバイルはmusicをタップで音楽消せます\n(最初のステージのみ)\nキャラをタップでスキン変えれます(難度も変わる‼)\n-------------------------------------------------------------------------\n            ～English～\nYou can move with arrow keys\nYou can turn off or turn on the music with the space key　　　　:)

@Stage\n\n@Player\n\nwhen flag clicked\nset rotation style [left-right v]\nforever\n    set size to (500) %\nend\n\nwhen I receive [next v]\nset [xv v] to [0]\ngo to x: (-214) y: (35)\nclear graphic effects\n\nwhen I receive [start game v]\nswitch costume to (1 v)\ngo to x: (-214) y: (35)\nset rotation style [left-right v]\nset size to (475) %\nshow\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        point in direction (90)\n        change [xv v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        point in direction (-90)\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<touching (map v)?> or <touching (buttons v)?>> then\n        change y by (1)\n        if <<touching (map v)?> or <touching (buttons v)?>> then\n            change y by (1)\n            if <<touching (map v)?> or <touching (buttons v)?>> then\n                change y by (1)\n                if <<touching (map v)?> or <touching (buttons v)?>> then\n                    change y by (1)\n                    if <<touching (map v)?> or <touching (buttons v)?>> then\n                        change y by (1)\n                        if <<touching (map v)?> or <touching (buttons v)?>> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                start sound [Jump2 v]\n                                set [touching map? v] to [0]\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                    switch costume to (1 v)\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <<touching (map v)?> or <touching (buttons v)?>> then\n        set [touching map? v] to [1]\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching (map v)?> or <touching (buttons v)?>> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [touching map? v] to [0]\n            start sound [Jump v]\n            set [yv v] to [13]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nset rotation style [don't rotate v]\nset size to (475) %\nshow\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <touching (danger v)?> then\n        broadcast (Dead v)\n        start sound [Dead v]\n        repeat (5)\n            change [ghost v] effect by (20)\n            set [xv v] to [0]\n            set [yv v] to [0]\n        end\n        clear graphic effects\n        go to x: (-214) y: (35)\n    end\nend\n\nwhen flag clicked\nclear graphic effects\nforever\n    set [costume thing v] to [1]\n    wait (.1) seconds\n    set [costume thing v] to [2]\n    wait (.1) seconds\nend\n\nwhen I receive [start game v]\nforever\n    set rotation style [left-right v]\nend\n\nwhen I receive [start game v]\nforever\n    if <mouse down?> then\n        point towards (mouse-pointer v)\n    end\nend\n\nwhen flag clicked\nwait until <(Level) = [5]>\nchange [☁ m v] by (1)\n\nforever\n    change [color v] effect by (25)\nend\n\nwhen flag clicked\nforever\n    if <(Yv) > [0]> then\n        switch costume to (2 v)\n    end\n    if <(Yv) < [0]> then\n        switch costume to (1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> and <not <<(Yv) > [0]> or <(Yv) < [0]>>>> then\n        switch costume to (Costume thing)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> and <not <<(Yv) > [0]> or <(Yv) < [0]>>>> then\n        switch costume to (Costume thing)\n    end\nend\n\nwhen I receive [start game v]\nforever\n    if <(Yv) < [0]> then\n        wait until <(Touching map?) = [1]>\n        play sound [Hit ground v] until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <touching (map v)?>> then\n        set [touching map? v] to [0]\n    end\nend\n\nset [☁ high v] to [0]\n\n@Bow\n\nwhen flag clicked\nset [clones v] to [0]\nhide\n\nwhen I start as a clone\nchange y by (10)\npoint towards (mouse-pointer v)\nswitch costume to (arrow v)\nrepeat until <<touching (map v)?> or <touching (buttons v)?>>\n    change y by (YYYY)\n    move (Sped) steps\nend\nchange [clones v] by (-1)\nchange y by (4)\nwait (.01) seconds\nchange y by (-4)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <(M) = [1]> then\n        change [clones v] by (-1)\n        delete this clone\n    end\nend\n\nwhen I receive [dead v]\nset [m v] to [1]\nwait (.01) seconds\nset [m v] to [0]\n\nwhen I receive [next v]\nset [m v] to [1]\nwait (.01) seconds\nset [m v] to [0]\n\nwhen I receive [start game v]\nforever\n    if <not <mouse down?>> then\n        wait (.02) seconds\n    end\nend\n\nwhen I receive [start game v]\nforever\n    if <mouse down?> then\n        wait until <not <mouse down?>>\n        switch costume to (1 v)\n        change [clones v] by (1)\n        create clone of (_myself_ v)\n        set [sped v] to [0]\n        wait (.5) seconds\n    end\nend\n\nwhen I receive [start game v]\nforever\n    go to (player v)\nend\n\nwhen I receive [start game v]\nshow\nswitch costume to (1 v)\nforever\n    move (10) steps\n    change y by (-5)\n    set size to (250) %\nend\n\nwhen flag clicked\nset [sped v] to [0]\nforever\n    go to [front v] layer\n    if <mouse down?> then\n        switch costume to (2 v)\n        set [sped v] to [10]\n        wait (.3) seconds\n        if <mouse down?> then\n            switch costume to (3 v)\n            set [sped v] to [15]\n            wait (.3) seconds\n            if <mouse down?> then\n                switch costume to (4 v)\n                set [sped v] to [20]\n                wait until <not <mouse down?>>\n                wait (.3) seconds\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nwait (.2) seconds\nrepeat until <<touching (map v)?> or <touching (buttons v)?>>\n    turn right ((direction) * (.035)) degrees\nend\n\nwhen I start as a clone\nset [yyyy v] to [0]\nrepeat until <<touching (map v)?> or <touching (buttons v)?>>\n    change [yyyy v] by (-.4)\nend\n\nwhen flag clicked\nforever\n    if <(Clones) < [0]> then\n        set [clones v] to [0]\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (_edge_ v)?> then\n        hide\n        wait (1) seconds\n        delete this clone\n    else\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(distance to [mouse-pointer v]) > [15]> then\n        point towards (mouse-pointer v)\n    end\nend\n\n@Map\n\nwhen flag clicked\nhide\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [start game v]\nshow\nswitch costume to (1 v)\ngo to [front v] layer\nforever\n    go to x: (0) y: (15)\n    set size to (475) %\nend\n\n@Buttons\n\nwhen flag clicked\nhide variable [buttons v]\nset [buttons v] to [0]\nset [buttons pressed v] to [0]\nhide\n\nwhen I receive [next v]\nrepeat (5)\n    set [buttons pressed v] to [0]\n    wait (.2) seconds\nend\n\nwhen I receive [next v]\nwait (1) seconds\nforever\n    if <(How many buttons) = (Buttons pressed)> then\n        broadcast (Open door v) and wait\n        stop [this script v]\n    end\nend\n\nwhen I receive [set v]\nwait (.02) seconds\nif <(Level) = [2]> then\n    set [how many buttons v] to [1]\n    Create clone at [76] [128] [90]\nend\nif <(Level) = [3]> then\n    set [how many buttons v] to [1]\n    Create clone at [55] [41] [-90]\nend\nif <(Level) = [4]> then\n    set [how many buttons v] to [2]\n    Create clone at [-24] [158] [-90]\n    Create clone at [196] [150] [180]\nend\nif <(Level) = [5]> then\n    set [how many buttons v] to [2]\n    Create clone at [-66] [-6] [-90]\n    Create clone at [0] [90] [-90]\nend\nif <(Level) = [6]> then\n    set [how many buttons v] to [4]\n    Create clone at [37] [147] [0]\n    Create clone at [-33] [147] [0]\n    Create clone at [-132] [147] [0]\n    Create clone at [151] [75] [90]\nend\nif <(Level) = [7]> then\n    set [how many buttons v] to [2]\n    Create clone at [134] [100] [0]\n    Create clone at [63] [147] [90]\nend\nif <(Level) = [8]> then\n    set [how many buttons v] to [3]\n    Create clone at [66] [134] [0]\n    Create clone at [120] [134] [0]\n    Create clone at [200] [134] [0]\nend\nif <(Level) = [9]> then\n    set [how many buttons v] to [4]\n    Create clone at [-214] [141] [0]\n    Create clone at [-5] [136] [0]\n    Create clone at [-142] [-106] [-90]\n    Create clone at [126] [-106] [90]\nend\nif <(Level) = [10]> then\n    set [how many buttons v] to [1000]\n    Create clone at [-146] [172] [0]\n    Create clone at [-220] [90] [-90]\n    Create clone at [-220] [140] [-90]\n    Create clone at [94] [172] [0]\nend\n\nrepeat (5)\n    set [buttons pressed v] to [0]\n    wait (.2) seconds\n    show\n    clear graphic effects\nend\n\nwhen I receive [dead v]\nwait (1) seconds\nforever\n    if <(How many buttons) = (Buttons pressed)> then\n        broadcast (Open door v) and wait\n        stop [this script v]\n    end\nend\n\ndefine Create clone at (x) (y) (direction)\ngo to x: (x) y: (y)\npoint in direction (direction)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset [buttons pressed v] to [0]\nshow\nclear graphic effects\ngo to [front v] layer\nforever\n    set size to (500) %\n    switch costume to (1 v)\n    if <<touching (bow v)?> and <(Clones) > [0]>> then\n        start sound [Oof v]\n        switch costume to (2 v)\n        if <not <(Level) = [10]>> then\n            change [buttons pressed v] by (1)\n            repeat (10)\n                change size by (10)\n                change [ghost v] effect by (10)\n            end\n            hide\n            delete this clone\n        else\n            show variable [buttons v]\n            change [buttons v] by (1)\n            switch costume to (2 v)\n            wait (1) seconds\n            switch costume to (1 v)\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(M) = [1]> then\n        delete this clone\n    end\nend\n\nwhen I receive [dead v]\nbroadcast (Set v)\n\nwhen I receive [next v]\nbroadcast (Set v)\n\nwhen I receive [start game v]\nset [level v] to [1]\nif <(Level) = [1]> then\n    set [how many buttons v] to [1]\n    Create clone at [61] [-120] [90]\nend\n\nwhen I receive [start game v]\nset [buttons pressed v] to [0]\nwait (1) seconds\nforever\n    if <(How many buttons) = (Buttons pressed)> then\n        broadcast (Open door v) and wait\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide variable [☁ high v]\n\nwhen I receive [start game v]\nforever\n    if <(Level) = [10]> then\n        show variable [☁ high v]\n    end\nend\n\nwhen I receive [start game v]\nforever\n    if <(Buttons) > (☁ High)> then\n        wait (.2) seconds\n        set [☁ high v] to (Buttons)\n    end\nend\n\nwhen I start as a clone\ngo to [front v] layer\n\n@Door\n\nwhen I receive [open door v]\ngo to [back v] layer\nswitch costume to (1 v)\ngo to x: (203) y: (56)\nrepeat (8)\n    next costume\nend\n\nwhen I receive [next v]\nset [next? v] to [1]\nwait (.000001) seconds\nset [next? v] to [0]\nwait (.1) seconds\nwait (.3) seconds\nswitch costume to (1 v)\n\nwhen flag clicked\nhide\n\nwhen I receive [dead v]\nwait (.3) seconds\nswitch costume to (1 v)\nset [buttons pressed v] to [0]\n\nwhen I receive [start game v]\nset size to (475) %\nshow\ngo to [back v] layer\nswitch costume to (1 v)\nforever\n    if <(Level) = [1]> then\n        go to x: (180) y: (93)\n    end\n    if <(Level) = [2]> then\n        go to x: (179) y: (-64)\n    end\n    if <(Level) = [3]> then\n        go to x: (202) y: (88)\n    end\n    if <(Level) = [4]> then\n        go to x: (-204) y: (100)\n    end\n    if <(Level) = [5]> then\n        go to x: (179) y: (-31)\n    end\n    if <(Level) = [6]> then\n        go to x: (106) y: (36)\n    end\n    if <(Level) = [7]> then\n        go to x: (4) y: (13)\n    end\n    if <(Level) = [8]> then\n        go to x: (182) y: (-14)\n    end\n    if <(Level) = [9]> then\n        go to x: (180) y: (70)\n    end\n    if <(Level) = [10]> then\n        hide\n    end\nend\n\nwhen I receive [start game v]\nforever\n    go to [back v] layer\nend\n\nwhen I receive [start game v]\ngo to [back v] layer\nswitch costume to (1 v)\nforever\n    if <<touching (player v)?> and <(How many buttons) = (Buttons pressed)>> then\n        broadcast (Dead v)\n        broadcast (Thing v) and wait\n    end\nend\n\n@Danger\n\ndefine Create clone at (x) (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\nwhen I receive [next v]\nwait (.2) seconds\nif <(Level) = [2]> then\n    Create clone at [-9] [-162]\nend\nif <(Level) = [3]> then\n    Create clone at [113] [-21]\n    Create clone at [-77] [-21]\n    Create clone at [-130] [-21]\nend\nif <(Level) = [4]> then\n    Create clone at [-122] [-169]\n    Create clone at [20] [-169]\nend\nif <(Level) = [6]> then\n    Create clone at [-112] [-78]\n    Create clone at [19] [-78]\nend\nif <(Level) = [7]> then\n    Create clone at [-92] [-84]\n    Create clone at [78] [-173]\n    Create clone at [112] [-173]\n    Create clone at [152] [-173]\n    Create clone at [185] [-173]\n    Create clone at [224] [-173]\nend\nif <(Level) = [8]> then\n    Create clone at [96] [-118]\nend\nif <(Level) = [9]> then\n    Create clone at [-136] [-182]\n    Create clone at [-100] [-182]\n    Create clone at [-64] [-182]\n    Create clone at [55] [-182]\n    Create clone at [93] [-182]\n    Create clone at [120] [-182]\nend\n\nCreate clone at [-40] [-169]\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nforever\n    turn right (110) degrees\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    if <(Next?) = [1]> then\n        delete this clone\n    end\nend\n\n@Thumbnail\n\nshow\nhide variable [☁ high v]\ngo to x: (0) y: (0)\ngo to [front v] layer\nstop [all v]\n\nwhen I receive [start game v]\nhide\nforever\n    set volume to (40) %\n    play sound [dracula-ii-music-fds-the-silence-of-daylight v] until done\nend\n\nwhen flag clicked\nhide\n\nset [☁ high v] to [0]\n\nshow variable [☁ high v]\n\nhide variable [☁ high v]\n\n@Finished\n\nwhen I receive [start game v]\nforever\n    if <(Level) = [10]> then\n        show\n        go to [front v] layer\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide\n\n@Intro\n\nwhen flag clicked\nwait (.01) seconds\nif <(1342) = [0]> then\n    start sound [pimpmywalkcom-neon-light-flicker v]\n    go to x: (0) y: (0)\n    show\n    switch costume to (black v)\n    create clone of (_myself_ v)\n    show\n    go to [front v] layer\n    switch costume to (clear v)\n    set size to (500) %\n    switch costume to (logo v)\n    set [brightness v] effect to (-90)\n    wait (1) seconds\n    set [brightness v] effect to (-50)\n    wait (.1) seconds\n    set [brightness v] effect to (-90)\n    wait (.05) seconds\n    set [brightness v] effect to (-50)\n    wait (.1) seconds\n    set [brightness v] effect to (-90)\n    wait (.3) seconds\n    set [brightness v] effect to (-100)\n    wait (1) seconds\n    repeat (100)\n        change [brightness v] effect by (2)\n    end\n    hide\n    broadcast (Start Game v)\n    set [1342 v] to [1]\nend\nbroadcast (Start Game v)\n\nwhen I start as a clone\nwait (6) seconds\nswitch costume to (white v)\nwait (.01) seconds\ndelete this clone\n\nwhen flag clicked\nif <(username) = [Pixel_Coder_123]> then\n    set [1342 v] to [1]\nend\n\n@Black\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    go to x: (0) y: (0)\nend\n\nwhen I receive [start game v]\nwait (.1) seconds\nrepeat (10)\n    go to [front v] layer\nend\n\n@Black thing\n\nwhen flag clicked\nhide\ngo to x: (0) y: (350)\n\nwhen I receive [thing v]\ngo to x: (0) y: (400)\nshow\nset [yy v] to [0]\nrepeat (30)\n    go to [front v] layer\n    change [yy v] by (-2)\n    change y by (yy)\nend\nhide\n\nwhen I receive [thing v]\nwait (.6) seconds\nbroadcast (Next v)\nchange [level v] by (1)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n