-Adventure- Platformer
@Stage\n\nwhen I receive [start v]\nwait (0.2) seconds\nforever\n    play sound [Ampyx - Rise.mp3 v] until done\nend\n\n@Sprite3\n\nwhen I receive [fade v]\ndelete this clone\n\nwhen I start as a clone\nif <(id) = [0]> then\n    go to x: (0) y: (0)\n    point in direction (90)\n    show\n    switch costume to (background v)\n    go to [back v] layer\n    forever\n        if <(uservanish) = [0]> then\n            set [ghost v] effect to (0)\n            switch costume to (background v)\n            go to [back v] layer\n            go [backward v] (1) layers\n            show\n            go to x: (0) y: (0)\n        else\n            wait (0.4) seconds\n            repeat (20)\n                change [ghost v] effect by (5)\n            end\n            delete this clone\n        end\n    end\nend\nif <(id) = [1]> then\n    go to x: (700) y: (0)\n    show\n    point in direction (90)\n    go to [front v] layer\n    Smooth Glide to x [0] y [0] Speed [4]\n    hide\n    delete this clone\nend\nif <(id) = [2]> then\n    set size to (0) %\n    show\n    switch costume to (my icon v)\n    go to [front v] layer\n    go to x: (0) y: (35)\n    repeat (16)\n        turn right (22.5) degrees\n        change size by (6.25)\n    end\n    point in direction (90)\n    set size to (100) %\n    forever\n        if <(end?) = [0]> then\n            point in direction ((([cos v] of ((sine) * (18)) ) * (10)) + (90))\n            change [sine v] by (1)\n        else\n            repeat (24)\n                turn right (-16.875) degrees\n                change size by (-4.6875)\n            end\n            broadcast (fade v)\n            delete this clone\n        end\n    end\nend\nif <(id) = [3]> then\n    point in direction (90)\n    wait (0.5) seconds\n    set [ghost v] effect to (0)\n    switch costume to (username v)\n    go to [front v] layer\n    go [backward v] (1) layers\n    show\n    go to x: (700) y: (0)\n    Smooth Glide to x [0] y [0] Speed [4]\n    forever\n        if <(uservanish) = [0]> then\n            set [ghost v] effect to (0)\n            switch costume to (username v)\n            go to [front v] layer\n            go [backward v] (1) layers\n            show\n            go to x: (0) y: (0)\n        else\n            Smooth Glide to x [0] y [25] Speed [3]\n            Smooth Glide to x [0] y [-99] Speed [3]\n            delete this clone\n        end\n    end\nend\n\nwhen flag clicked\nset [end? v] to [0]\nstart sound [Inferno4 v]\nhide\nset [uservanish v] to [0]\nset [sine v] to [0]\nset [id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.1) seconds\nchange [id v] by (1)\nrepeat (3)\n    switch costume to (slide v)\n    create clone of (_myself_ v)\n    wait (0.1) seconds\n    switch costume to (slide2 v)\n    create clone of (_myself_ v)\n    wait (0.1) seconds\nend\nswitch costume to (background v)\ncreate clone of (_myself_ v)\nwait (0.8) seconds\nchange [id v] by (1)\ncreate clone of (_myself_ v)\nwait (0.1) seconds\nchange [id v] by (1)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nset volume to (100) %\nwait (7) seconds\nset [end? v] to [1]\nset [uservanish v] to [1]\nbroadcast (Start v)\n\nwhen I receive [fade v]\nrepeat (10)\n    change volume by (-10)\nend\nstop all sounds\nbroadcast (end intro v)\n\ndefine Smooth Glide to x (x) y (y) Speed (s)\nrepeat until <<(round (x position)) = (x)> and <(round (y position)) = (y)>>\n    change x by (((x) - (x position)) / (s))\n    change y by (((y) - (y position)) / (s))\nend\ngo to x: (x) y: (y)\n\ngo to [front v] layer\n\n@Awesome Particles\n\nwhen I start as a clone\nset [ghost v] effect to (65)\ngo to [back v] layer\nshow\nif <(size) > [99]> then\n    glide (6) secs to x: (x position) y: (200)\n    delete this clone\nend\nif <(size) > [80]> then\n    glide (5) secs to x: (x position) y: (200)\n    delete this clone\nend\nif <(size) > [65]> then\n    glide (4) secs to x: (x position) y: (200)\n    delete this clone\nend\nif <(size) > [50]> then\n    glide (3) secs to x: (x position) y: (200)\n    delete this clone\nend\nif <(size) > [40]> then\n    glide (2.5) secs to x: (x position) y: (200)\n    delete this clone\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    create clone of (_myself_ v)\n    set [brightness v] effect to (pick random (-10) to (10))\n    set size to (pick random (41) to (90)) %\n    go to x: (pick random (-200) to (200)) y: (-180)\n    wait (pick random (0.2) to (0.6)) seconds\nend\n\n@Player\n\nwhen I start as a clone\nclear graphic effects\nset size to (80) %\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-8)\nend\ndelete this clone\n\nwhen I receive [start v]\ngo to x: (-188) y: (-75)\nset rotation style [left-right v]\npoint in direction (90)\nset size to (80) %\nset [x v] to [0]\nset [y v] to [0]\nshow\n\nwhen I receive [start v]\nhide variable [☁ world record v]\nhide variable [☁ your time v]\nreset timer\nswitch costume to (正面 v)\nswitch backdrop to (背景1 v)\nshow\nforever\n    change y by (1)\n    change [y v] by (-1)\n    if <<key (right arrow v) pressed?> or <<(mouse x) > [1]> and <mouse down?>>> then\n        change [x v] by (0.7)\n        point in direction (90)\n        create clone of (_myself_ v)\n    end\n    if <<key (left arrow v) pressed?> or <<(mouse x) < [-1]> and <mouse down?>>> then\n        change [x v] by (-0.7)\n        point in direction (-90)\n        create clone of (_myself_ v)\n    end\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    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        set [y v] to [0]\n        if <<key (up arrow v) pressed?> or <<(mouse y) > [50]> and <mouse down?>>> then\n            start sound [jump-anime1 v]\n            set [y v] to [15]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [y v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (ground v)?> then\n        change y by ((0) - (y))\n        set [y v] to [0]\n    end\n    if <touching (enemies v)?> then\n        set [x v] to [0]\n        set [y v] to [0]\n        start sound [tin1 v]\n        repeat (20)\n            change [pixelate v] effect by (5)\n        end\n        set [pixelate v] effect to (0)\n        go to x: (-188) y: (-75)\n    end\n    if <touching (do not touch v)?> then\n        set [x v] to [0]\n        set [y v] to [0]\n        start sound [tin1 v]\n        repeat until <touching (_edge_ v)?>\n            change y by (8)\n            change [ghost v] effect by (5)\n        end\n        set rotation style [left-right v]\n        point in direction (90)\n        set [ghost v] effect to (0)\n        go to x: (-188) y: (-75)\n    end\n    change y by (-1)\n    if <(Stage) = [10]> then\n    else\n        if <(x position) > [215]> then\n            broadcast (Goal v)\n            hide\n            start sound [shakin1 v]\n            wait (1) seconds\n            show\n            go to x: (-188) y: (-75)\n        end\n    end\n    if <(Stage) = [19]> then\n        set [☁ your time v] to (timer)\n        broadcast (記録表示 v)\n        show variable [☁ world record v]\n        show variable [☁ your time v]\n        if <(☁ World Record) > [50]> then\n            set [☁ world record v] to (☁ Your Time)\n        end\n        stop [this script v]\n    end\n    if <(y position) < [-127]> then\n        start sound [tin1 v]\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        set [ghost v] effect to (0)\n        go to x: (-188) y: (-75)\n    end\n    if <touching (warp v)?> then\n        start sound [magic-worp1 v]\n        glide (1.5) secs to (warp1 v)\n    end\n    if <<key (up arrow v) pressed?> or <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>>> then\n    else\n        if <<key (down arrow v) pressed?> or <<[-50] > (mouse y)> and <mouse down?>>> then\n            Sound\n        end\n    end\n    if <touching color (#000aff)?> then\n        set [y v] to [23]\n        create clone of (_myself_ v)\n        broadcast (アニメーション v)\n    end\n    if <(x position) > [215]> then\n        broadcast (Goal v)\n        go to x: (-188) y: (-75)\n    end\n    if <(Stage) = [19]> then\n        set [☁ your time v] to (timer)\n        broadcast (記録表示 v)\n        show variable [☁ world record v]\n        show variable [☁ your time v]\n        if <(☁ World Record) > [50]> then\n            set [☁ world record v] to (☁ Your Time)\n        end\n        stop [this script v]\n    end\n    if <touching (coin v)?> then\n    if <touching (spike v)?> then\n        set [x v] to [0]\n        set [y v] to [0]\n        start sound [tin1 v]\n        repeat until <touching (_edge_ v)?>\n            change y by (8)\n            change [ghost v] effect by (5)\n        end\n        set rotation style [left-right v]\n        point in direction (90)\n        set [ghost v] effect to (0)\n        go to x: (-188) y: (-75)\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> and <touching (ground v)?>> or <<mouse down?> and <<touching (ground v)?> and <(mouse y) > [50]>>>> then\n        start sound [jump-anime1 v]\n        set [y v] to [15]\n        create clone of (_myself_ v)\n    end\n    if <touching color (#000aff)?> then\n        set [y v] to [23]\n        create clone of (_myself_ v)\n        broadcast (アニメーション v)\n    end\nend\n\ndefine Move\nif <(costume [number v]) = [1]> then\n    switch costume to (前1 v)\n    wait (0.1) seconds\n    switch costume to (前2 v)\n    wait (0.1) seconds\n    switch costume to (正面 v)\nelse\n    switch costume to (正面 v)\nend\n\nwhen flag clicked\nhide\nforever\n    if <<key (right arrow v) pressed?> or <<(mouse x) > [1]> and <mouse down?>>> then\n        Move\n    end\n    if <<key (left arrow v) pressed?> or <<(mouse x) < [-1]> and <mouse down?>>> then\n        Move\n    end\nend\n\nif <<key (down arrow v) pressed?> or <<[-50] > (mouse y)> and <mouse down?>>> then\n    switch costume to (2 v)\n    if <[-166] > (y position)> then\n        go to x: (-189) y: (-75)\n    end\nelse\n    switch costume to (1 v)\n    if <[-166] > (y position)> then\n        go to x: (-188) y: (-75)\n    end\nend\n\ndefine Sound\nif <(pick random (1) to (3)) = [1]> then\n    play sound [_game_swordman-greeting1 v] until done\nend\nif <(pick random (1) to (3)) = [2]> then\n    play sound [_game_swordman-start1 v] until done\nend\nif <(pick random (1) to (3)) = [3]> then\n    play sound [_game_swordman-guard2 v] until done\nend\n\n@warp\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(Stage) = [7]> then\n        wait (1) seconds\n        go to x: (-136) y: (-116)\n        show\n    else\n        if <(Stage) = [9]> then\n            wait (1) seconds\n            go to x: (191) y: (-116)\n            show\n        else\n            hide\n        end\n    end\nend\n\nwhen I receive [goal v]\nhide\n\n@tran\n\nwhen flag clicked\nhide\n\nwhen I receive [goal v]\nswitch costume to (costume 2 v)\ngo [forward v] (5) layers\nshow\nrepeat (20)\n    change y by (((0) - (y position)) / (4))\nend\nwait (0.2) seconds\nstart sound [Low Whoosh v]\nrepeat (20)\n    change y by (((345) - (y position)) / (4))\nend\nhide\n\n@warp1\n\nwhen flag clicked\nforever\n    if <(Stage) = [7]> then\n        wait (1) seconds\n        go to x: (136) y: (-116)\n        show\n    else\n        if <(Stage) = [9]> then\n            wait (1) seconds\n            go to x: (-200) y: (91)\n            show\n        else\n            hide\n        end\n    end\nend\n\n@clouds\n\nwhen flag clicked\nrepeat (3)\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\n\nwhen I start as a clone\nforever\n    switch costume to (pick random (1) to (2))\n    set size to (pick random (40) to (70)) %\n    go to [back v] layer\n    set [ghost v] effect to (pick random (5) to (20))\n    if <(pick random (1) to (2)) = [1]> then\n        show\n        go to x: (-200) y: (pick random (20) to (180))\n        repeat (220)\n            change x by (2)\n        end\n        hide\n        wait (pick random (1) to (5)) seconds\n    end\n    if <(pick random (1) to (2)) = [2]> then\n        show\n        go to x: (220) y: (pick random (20) to (180))\n        repeat (110)\n            change x by (-4)\n        end\n        hide\n        wait (pick random (1) to (5)) seconds\n    end\nend\n\n@Ground\n\nwhen flag clicked\nset [stage v] to [1]\nswitch costume to (コスチューム1 v)\nhide\n\nwhen flag clicked\nforever\n    set [stage v] to (costume [number v])\nend\n\nwhen I receive [start v]\nshow\n\nwhen I receive [goal v]\nnext costume\n\n@Do not touch\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\n\nwhen I receive [goal v]\nnext costume\n\n@スプライト1\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nhide\n\nwhen I receive [goal v]\nnext costume\n\nwhen I receive [start v]\nshow\n\n@Enemies\n\nwhen flag clicked\nforever\n    if <(Stage) = [8]> then\n        wait (1) seconds\n        go to x: (10) y: (-132)\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    turn left (5) degrees\nend\n\n@文字\n\nwhen flag clicked\ngo [forward v] (1) layers\nhide\n\nwhen I receive [start v]\nshow\nforever\n    if <(Stage) = [1]> then\n        switch costume to (1 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [start v]\nforever\n    set y to (((([sin v] of ((timer) * (250)) ) + (18)) * (1.5)) * (5))\nend\n\nwhen I receive [start v]\nforever\n    if <(Stage) = [2]> then\n        switch costume to (2 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Stage) = [3]> then\n        switch costume to (3 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Stage) = [4]> then\n        switch costume to (4 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Stage) = [5]> then\n        switch costume to (5 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Stage) = [6]> then\n        switch costume to (6 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Stage) = [7]> then\n        switch costume to (7 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Stage) = [8]> then\n        switch costume to (8 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Stage) = [9]> then\n        switch costume to (9 v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <(Stage) = [10]> then\n        switch costume to (10 v)\n        start sound [people-performance-cheer1 v]\n        stop [this script v]\n    end\nend\n\n@Samune\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nshow\nset [ghost v] effect to (100)\ngo to [front v] layer\n\n@スプライト3\n\nwhen flag clicked\ngo to x: (191) y: (138)\nhide\nset size to (50) %\nchange size by ((size) * (0.9))\nforever\n    repeat (10)\n        change size by (5)\n    end\n    repeat (10)\n        change size by (-5)\n    end\nend\n\nwhen I receive [start v]\nshow\n\nwhen this sprite clicked\nbroadcast (Goal v)\n\n
Arrow keys, or mobile controls to move.\nGet to the end to win!!!\nIf you press down key or mobile controls main character will talk.\nEnjoy!\n\n矢印キー、またはスクリーンをタッチ！\n最後まで頑張って！！\n下キーまたはスクリーン下を押すと、メインキャラクターが話します。\n楽しんで！