EDGAR PLATFORMER  // #Games #All #Music #Tutorials #Stories #Platformer #Art 

Instructions: PC: W A S D or ↑ ↓ ← →\n\nPhone: Click\n\nTake a Look of this Awesome Projects:\n\nhttps://scratch.mit.edu/projects/843918707/\nhttps://scratch.mit.edu/projects/856427559/\nhttps://scratch.mit.edu/projects/820892128/

@Stage\n\nwhen I receive [始まり始まり v]\nswitch backdrop to (背景 v)\n\nwhen flag clicked\nswitch backdrop to (背景2 v)\n\nwhen flag clicked\nforever\n    play sound [03 v] until done\nend\n\n@地面\n\nwhen I receive [nextstage v]\nnext costume\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nswitch costume to (コスチューム1 v)\n\n@草\n\nwhen I receive [nextstage v]\nnext costume\n\nwhen flag clicked\nshow\ngo to [back v] layer\nswitch costume to (雑草 v)\n\n@とげ\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (コスチューム1 v)\ngo to [back v] layer\n\nwhen I receive [nextstage v]\nnext costume\n\nwhen flag clicked\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\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@love and fav edgar\n\nwhen flag clicked\nshow\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@雲\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 flag clicked\nshow\nforever\n    1\n    2\nend\n\n@プレイヤー\n\ndefine 始め\nswitch costume to (edgar 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 (edgar 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\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 flag clicked\nshow\n１\nforever\n    左右\n    上\n    ２\nend\n\nwhen flag clicked\n\nforever\n    if <(stage) = [10]> then\n        wait (1) seconds\n        broadcast (TheEnd v) and wait\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Actions \(love/fave\)) = [2]> then\n        switch costume to (hyperedgar v)\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\n\nhide\nwait (1) seconds\nif <(Actions \(love/fave\)) = [2]> then\n    show\n    go to x: (-18) y: (-3)\n    reset timer\n    go to [front v] layer\n    switch costume to (2 v)\n    set [ghost v] effect to (100)\n    repeat until <(timer) > [3.5]>\n        change y by ((y position) / (-15))\n        change [ghost v] effect by (-3)\n    end\n    reset timer\n    repeat until <(timer) > [3.5]>\n        change y by (((y position) - (-100)) / (-15))\n        change [ghost v] effect by (10)\n    end\n    hide\nend\n\nforever\nend\n\n\n\ngo to x: (0) y: (50)\n\n@detector\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\nset [actions \(love/fave\) v] to [0]\nforever\n    set [touching v] to [none]\n    Detect [love] at [-201] [-220]\n    Detect [fave] at [-201] [-220]\nend\n\ndefine Detect (thing) at (x) (y)\nswitch costume to (empty v)\nset size to (27000) %\ngo to x: (x) y: (y)\nset size to (100) %\nswitch costume to (thing)\nif <touching (mouse-pointer v)?> then\n    set [touching v] to (costume [name v])\nend\n\nwhen flag clicked\nforever\n    wait until <(touching) = [love]>\n    wait (0.2) seconds\n    if <(touching) = [love]> then\n        change [actions \(love/fave\) v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    wait until <(touching) = [fave]>\n    wait (0.2) seconds\n    if <(touching) = [fave]> then\n        change [actions \(love/fave\) v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait until <(Actions \(love/fave\)) = [2]>\nchange [diamonds v] by (100)\n\n