Journey- A platformer #games
@Stage\n\nwhen I receive [始まり始まり v]\nswitch backdrop to (背景 v)\n\nwhen flag clicked\nswitch backdrop to (背景2 v)\n\n@地面\n\nwhen flag clicked\nhide\n\nwhen I receive [nextstage v]\nnext costume\n\nwhen I receive [始まり始まり v]\nshow\ngo to x: (0) y: (0)\nswitch costume to (コスチューム1 v)\n\n@草\n\nwhen flag clicked\nhide\n\nwhen I receive [nextstage v]\nnext costume\n\nwhen I receive [始まり始まり v]\nshow\ngo to [back v] layer\nswitch costume to (雑草 v)\n\n@イントロ\n\nwhen flag clicked\nset size to (200) %\nset [クローン判定 v] to [0]\nswitch costume to ( v)\nrepeat (5)\n    change [クローン判定 v] by (1)\n    create clone of (_myself_ v)\nend\n\ndefine A･Ｚ･R･I･Y (x)\nshow\ngo to x: (x) y: (180)\nrepeat (10)\n    change y by ((-1) - ((y position) / (3)))\n    turn right ((30.2) - ((direction) / (3))) degrees\nend\n\nwhen I start as a clone\nif <(クローン判定) = [1]> then\n    switch costume to (a v)\n    A･Ｚ･R･I･Y [-100]\n    wait (0.2) seconds\n    三〇　〇三左\nelse\n    if <(クローン判定) = [2]> then\n        switch costume to (az v)\n        A･Ｚ･R･I･Y [-50]\n        wait (0.16) seconds\n        三〇　〇三左\n    else\n        if <(クローン判定) = [3]> then\n            switch costume to (azr v)\n            A･Ｚ･R･I･Y [0]\n            wait (1.5) seconds\n            glide (0.2) secs to x: (250) y: (0)\n            hide\n        else\n            if <(クローン判定) = [4]> then\n                switch costume to (azri v)\n                A･Ｚ･R･I･Y [50]\n                wait (0.08) seconds\n                三〇　〇三右\n            else\n                if <(クローン判定) = [5]> then\n                    switch costume to (azriy v)\n                    A･Ｚ･R･I･Y [100]\n                    wait (0.04) seconds\n                    三〇　〇三右\n                end\n            end\n        end\n    end\nend\nwait (0.3) seconds\nbroadcast (始まり始まり v)\n\ndefine 三〇　〇三右\nrepeat (16)\n    change x by ((x position) * (0.03))\nend\nif <(costume [number v]) = [6]> then\n    glide (0.1) secs to x: (40) y: (0)\n    start sound [Finger Snap v]\nelse\n    glide (0.1) secs to x: (80) y: (0)\nend\nwait (0.7) seconds\nglide (0.2) secs to x: (250) y: (0)\nhide\n\ndefine 三〇　〇三左\nrepeat (16)\n    change x by ((x position) * (0.03))\nend\nif <(costume [number v]) = [3]> then\n    glide (0.1) secs to x: (-80) y: (0)\nelse\n    glide (0.1) secs to x: (-40) y: (0)\nend\nwait (0.7) seconds\nglide (0.2) secs to x: (250) y: (0)\nhide\n\n@とげ\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (コスチューム1 v)\ngo to [back v] layer\nhide\n\nwhen I receive [始まり始まり v]\nshow\nforever\n    repeat (30)\n        change [上下 v] by (-0.05)\n        set [上下 v] to ((上下) * (0.9))\n        change y by (上下)\n    end\n    repeat (30)\n        change [上下 v] by (0.05)\n        set [上下 v] to ((上下) * (0.9))\n        change y by (上下)\n    end\nend\n\nwhen I receive [nextstage v]\nnext costume\n\n@サムネ\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@❤️と⭐️を！\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nwait (10) seconds\nforever\n    go to [front v] layer\n    show\n    go to x: (128) y: (400)\n    glide (0.8) secs to x: (128) y: (155)\n    wait (2) seconds\n    glide (0.8) secs to x: (128) y: (400)\n    hide\n    wait (10) seconds\nend\n\n@Next!\n\nwhen I receive [nextstage v]\nうひひひひ\n\ndefine clone (cloneid)\nswitch costume to (cloneid)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nウイー\n\nwhen I start as a clone\nアハ\n\nwhen flag clicked\nset [はい変数 v] to [0]\nforever\n    go to [front v] layer\nend\n\ndefine うひひひひ\nset [はい変数 v] to [1]\nhide\nstart sound [High Whoosh v]\nclone [1]\nwait (0.05) seconds\nclone [2]\nwait (0.05) seconds\nclone [3]\nwait (0.05) seconds\nclone [4]\nwait (0.05) seconds\nclone [5]\n\ndefine アハ\nif <(costume [number v]) = [1]> then\n    wait (2.2) seconds\n    repeat until <[465] < (x position)>\n        change x by ((1) + ((x position) / (4)))\n    end\n    delete this clone\nend\nif <(costume [number v]) = [2]> then\n    wait (2.1) seconds\n    repeat until <[465] < (x position)>\n        change x by ((1) + ((x position) / (4)))\n    end\n    delete this clone\nend\nif <(costume [number v]) = [3]> then\n    wait (2) seconds\n    repeat until <[465] < (x position)>\n        change x by ((1) + ((x position) / (4)))\n    end\n    delete this clone\nend\nif <(costume [number v]) = [4]> then\n    wait (1.9) seconds\n    repeat until <[465] < (x position)>\n        change x by ((1) + ((x position) / (4)))\n    end\n    delete this clone\nend\nif <(costume [number v]) = [5]> then\n    wait (1.8) seconds\n    repeat until <[330] < (x position)>\n        change x by ((1) + ((x position) / (4)))\n    end\n    set [はい変数 v] to [0]\n    delete this clone\nend\n\ndefine ウイー\nshow\nif <<(costume [number v]) = [1]> or <<(costume [number v]) = [2]> or <<(costume [number v]) = [3]> or <<(costume [number v]) = [4]> or <(costume [number v]) = [5]>>>>> then\n    go to x: (468) y: (0)\n    repeat until <(round (x position)) = [0]>\n        change x by (((0) - (x position)) / (7))\n    end\nend\n\n@スプライト1\n\nwhen flag clicked\nhide\n\ndefine ああ\nshow\ngo to [front v] layer\nforever\n    go to x: (-125) y: (140)\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        change [stage v] by (1)\n        broadcast (nextstage v)\n        wait (0.5) seconds\n    end\n    if <(stage) = [10]> then\n        hide\n    end\nend\n\nwhen I receive [始まり始まり v]\nshow\nああ\n\n@音様や\n\nwhen flag clicked\n軽くしよう\n\nwhen flag clicked\nhide\n\ndefine 軽くしよう\nset size to (150) %\nforever\n    go to x: (-140) y: (138)\n    if <(costume [number v]) = [1]> then\n        set volume to (100) %\n    end\n    if <(costume [number v]) = [2]> then\n        set volume to (50) %\n    end\n    if <(costume [number v]) = [3]> then\n        set volume to (0) %\n    end\nend\n\nwhen flag clicked\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        next costume\n        wait (0.1) seconds\n    end\nend\n\nwhen I receive [始まり始まり v]\nshow\ngo to [front v] layer\nswitch costume to (音様や v)\nforever\n    play sound [Tobu_-_Hope_NCS_Release v] until done\nend\n\n@雲\n\nwhen flag clicked\nhide\n\ndefine 1\ngo to x: (-307) y: (pick random (148) to (110))\nrepeat (100)\n    change x by (2)\nend\nrepeat until <touching (_edge_ v)?>\n    change x by (2)\nend\nrepeat (30)\n    change x by (2)\nend\nhide\nwait (1) seconds\nshow\n\ndefine 2\ngo to x: (307) y: (pick random (148) to (110))\nrepeat (100)\n    change x by (-2)\nend\nrepeat until <touching (_edge_ v)?>\n    change x by (-2)\nend\nrepeat (30)\n    change x by (-2)\nend\nhide\nwait (1) seconds\nshow\n\nwhen flag clicked\ngo to [back v] layer\n\nwhen I receive [始まり始まり v]\nshow\nforever\n    1\n    2\nend\n\n@プレイヤー\n\ndefine 始め\nswitch costume to (コスチューム1 v)\ngo to x: (-225) y: (-38)\nwait (0.3) seconds\nset [x v] to [8]\nset [y v] to [5]\n\ndefine 左右\nif <(はい変数) = [0]> then\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > [0]>>>> then\n        switch costume to (コスチューム2 v)\n        change [x v] by (0.9)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <[0] > (mouse x)>>>> then\n        switch costume to (コスチューム3 v)\n        change [x v] by (-0.9)\n    end\n    change x by (X)\n    set [x v] to ((X) * (0.9))\nend\n\ndefine 上\nif <touching (地面 v)?> then\n    change y by (1)\nend\nif <touching (地面 v)?> then\n    change y by (1)\nend\nif <touching (地面 v)?> then\n    change y by (1)\nend\nif <touching (地面 v)?> then\n    change y by (1)\nend\nif <(はい変数) = [0]> then\n    if <touching (地面 v)?> then\n        change y by (-3)\n        change x by ((X) * (-1.16))\n        if <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<(mouse y) > [20]> and <mouse down?>>>> then\n            switch costume to (コスチューム1 v)\n            if <(X) > [0]> then\n                set [x v] to [-8]\n            else\n                set [x v] to [8]\n            end\n            set [y v] to [14]\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (-1)\n    if <touching (地面 v)?> then\n        if <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<(mouse y) > [20]> and <mouse down?>>>> then\n            set [y v] to [14]\n        end\n    end\n    change [y v] by (-1)\n    change y by (Y)\n    if <touching (地面 v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\nend\n\nwhen flag clicked\nhide\n\ndefine １\nreset timer\nhide variable [stage v]\nhide variable [タイム v]\nshow\nset [stage v] to [1]\n始め\ngo to [front v] layer\n\ndefine ２\nif <(x position) > [239]> then\n    broadcast (nextstage v)\n    change [stage v] by (1)\n    wait until <(はい変数) = [1]>\n    wait (1) seconds\n    始め\nend\nif <(y position) < [-179]> then\n    broadcast (うわ～死んでるだぁさー v)\n    start sound [ﾀﾋぬ v]\n    始め\nend\nif <touching (とげ v)?> then\n    broadcast (うわ～死んでるだぁさー v)\n    start sound [ﾀﾋぬ v]\n    始め\nend\n\nwhen I receive [始まり始まり v]\nshow\n１\nforever\n    左右\n    上\n    ２\nend\n\n
Added a skip button for the intro.\n***********************************************************\nA lot of people have commented that the shield that the enemy puts up is too strong. I'm sorry if that was hard but it is totally possible to defeat them. Scroll to the bottom for how to do that.\n***********************************************************\nTell me in the comments if there were any problems.\n(There probably are)\n***********************************************************\nLove fave follow for part 2.\n***********************************************************\nCheck out my other projects here:\nhttps://scratch.mit.edu/studios/4685976/\n***********************************************************\nHOW TO DEFEAT THE ENEMIES:\nThe code in this project makes it so that when you attack, the enemy puts up their shield (or else it would be too easy, wouldn't it?). The thing you shoot gets stopped when it's touching that shield. To defeat the enemy, you need to get inside his shield when they're not shooting, and then attack. Then the thing you shoot hits the enemy before it gets stopped (however, you have to time it just right).