BOX(Platformer)
@Stage\n\nwhen flag clicked\nforever\n    play sound [BGM v] until done\nend\n\n@Player\n\nwhen flag clicked\nhide variable [time v]\nhide variable [◯-◯ v]\nhide\n\nwhen I receive [start v]\nreset timer\nset rotation style [left-right v]\ngo to x: (-200) y: (-10)\nshow\npoint in direction (90)\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        change [x v] by (0.6)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        change [x v] by (-0.6)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#000008)?> then\n        change y by (1)\n    end\n    if <touching color (#000008)?> then\n        change y by (1)\n    end\n    if <touching color (#000008)?> then\n        change y by (1)\n    end\n    if <touching color (#000008)?> then\n        change y by (1)\n    end\n    if <touching color (#000008)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            start sound [pop v]\n            set [y v] to [13]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-7]\n            else\n                set [x v] to [7]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching color (#000008)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<key (up arrow v) pressed?> and <touching color (#000008)?>> then\n        start sound [pop v]\n        set [y v] to [14]\n    end\n    change y by (1)\n    if <touching color (#003fff)?> then\n        start sound [tom drum v]\n        set [y v] to [18]\n    end\n    if <touching color (#ff0000)?> then\n        start sound [cymbal v]\n        go to x: (-200) y: (-10)\n        show\n        point in direction (90)\n        set [y v] to [0]\n    end\n    if <touching color (#00ff55)?> then\n        start sound [hand clap v]\n        change [stage v] by (1)\n        go to x: (-200) y: (-10)\n        point in direction (90)\n        set [y v] to [0]\n    end\nend\n\n@Stage\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nset [stage v] to [1]\nforever\n    switch costume to (stage)\n    go to x: (0) y: (0)\n    set [◯-◯ v] to (join [Stage] (stage))\n    if <(costume [number v]) = [9]> then\n        show variable [time v]\n    else\n        set [time v] to (timer)\n    end\nend\n\n@Title\n\nwhen flag clicked\nhide\n\nwhen [t v] key pressed\nwait (0.1) seconds\nrepeat until <key (t v) pressed?>\n    show variable [time v]\nend\nif <key (t v) pressed?> then\n    hide variable [time v]\nend\n\nwhen I receive [1 v]\nwait (1) seconds\nclear graphic effects\ngo to x: (0) y: (0)\nshow\nrepeat until <key (space v) pressed?>\n    next costume\nend\nif <key (space v) pressed?> then\n    start sound [snap v]\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    broadcast (start v)\n    hide\nend\n\n@Intro\n\nwhen flag clicked\nset [size count v] to [0]\nreset timer\nreset timer\nshow\ngo to x: (0) y: (0)\npoint in direction (-150)\nswitch costume to (logo4 v)\nset [ghost v] effect to (100)\nset size to (0) %\nrepeat until <(timer) > [1.5]>\n    set [size count v] to (((size count) * (0.75)) + (((100) - (size)) * (0.3)))\n    change size by (size count)\n    turn right (((90) - (direction)) * (0.3)) degrees\n    change [ghost v] effect by (-50)\nend\nwait (2) seconds\nset [y v] to [10]\nrepeat until <(y position) < [-175]>\n    change [y v] by (-1)\n    change y by (y)\n    change size by (-3.5)\nend\nhide\nbroadcast (1 v)\n\nrepeat (10)\n    change size by (((165) - (size)) / (3))\nend\nrepeat until <(size) < [5]>\n    change size by (join [-] (((0) - (size)) / (-2)))\nend\nhide\n\n@Title2\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\ngo to x: (0) y: (0)\nshow\n\nshow\ngo to [front v] layer\n\n