Climb II Platformer (mobile friendly) #all #games
@Stage\n\nwhen I receive [start v]\nforever\n    play sound [TheFatRat - Fly Away feat. Anjulie.mp3 v] until done\nend\n\nwhen I receive [unmute v]\nset volume to (100) %\n\nwhen I receive [mute v]\nset volume to (0) %\n\nwhen flag clicked\nwait (10) seconds\nbroadcast (Start v)\n\n@Player\n\ndefine Spin off screen\nset rotation style [all around v]\nset [player death v] to [1]\nstart sound [crashed oof v]\nset [y v v] to [15]\nrepeat until <(y position) < [-178]>\n    go to [front v] layer\n    turn right (10) degrees\n    change y by (Y v)\n    change [y v v] by (-1)\nend\nset [player death v] to [0]\ngo to [back v] layer\nset rotation style [left-right v]\npoint in direction (90)\ngo [forward v] (3) layers\ngo to [front v] layer\n\nnext backdrop\n\nwhen I receive [start v]\nhide variable [☁ world record v]\nhide variable [☁ your time v]\nreset timer\nswitch costume to (1 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 (1)\n        point in direction (90)\n    end\n    if <<key (left arrow v) pressed?> or <<(mouse x) < [-1]> and <mouse down?>>> then\n        change [x v] by (-1)\n        point in direction (-90)\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            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    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 [suck1 v]\n        set [y v] to [15]\n    end\n    if <touching (magma v)?> then\n        Spin off screen\n    end\n    if <touching (spike v)?> then\n        Spin off screen\n    else\n        if <[-166] > (y position)> then\n            go to x: (-199) y: (-60)\n        end\n    end\n    if  then\n        start sound [smw_spring_jump @ToadfanSchool v]\n        set [y v] to [23]\n        broadcast (アニメーション v)\n    end\n    if <<key (down arrow v) pressed?> or <<[-50] > (mouse y)> and <mouse down?>>> then\n        broadcast (Crouch v)\n        switch costume to (2 v)\n        if <[-166] > (y position)> then\n            go to x: (-199) y: (-60)\n        end\n    else\n        switch costume to (1 v)\n    end\n    if <(Stage) = [9]> then\nend\n\nwhen flag clicked\ngo [forward v] (10) layers\nhide variable [☁ world record v]\nhide variable [☁ your time v]\nhide\n\nwhen I receive [start v]\ngo [forward v] (3) layers\ngo to x: (-199) y: (-60)\nset rotation style [left-right v]\npoint in direction (90)\nset size to (100) %\nset [x v] to [0]\nset [y v] to [0]\nshow\n\nSpin off screen\n\n@Ground\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [back v] layer\ngo [forward v] (5) layers\nforever\n    switch costume to (Stage)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nset [stage v] to [1]\n\nwhen I receive [goal v]\nchange [stage v] by (1)\n\n@Spike\n\nwhen flag clicked\nswitch costume to (コスチューム3 v)\nhide variable [☁ world record v]\nhide variable [☁ your time v]\nhide\n\nwhen I receive [goal v]\nwait (0.5) seconds\nnext costume\n\nwhen I receive [start v]\nshow\nswitch costume to (コスチューム1 v)\n\n@スプライト1\n\nwhen flag clicked\nshow\nset [ghost v] effect to (50)\ngo to [front v] layer\ngo [forward v] (5) layers\n\n@skip\n\nwhen flag clicked\nswitch costume to (grass v)\nhide\nset size to (75) %\nforever\n    point in direction (([sin v] of ((timer) * (1200)) ) + (90))\n    wait (..2) seconds\n    if <(Stage) > [6]> then\n        switch costume to (cave v)\n    else\n        switch costume to (grass v)\n    end\n    if <(Stage) = [11]> then\n        hide\n    end\nend\n\nwhen I receive [start v]\nshow\ngo to [front v] layer\ngo to x: (-180) y: (-155)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Goal v)\n\nwhen I receive [cutscene boss v]\nhide\n\n@スプライト3\n\nwhen I receive [start v]\ngo to x: (-201) y: (138)\nswitch costume to (100% v)\nshow\nforever\n    go to [back v] layer\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        if <(costume [name v]) = [0%]> then\n            switch costume to (100% v)\n            broadcast (Unmute v)\n        else\n            switch costume to (0% v)\n            broadcast (Mute v)\n        end\n        wait until <not <mouse down?>>\n    end\nend\n\nwhen flag clicked\nhide\n\n@:D\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\ngo to [front v] layer\n\n@スプライト4\n\n@transition\n\nwhen flag clicked\nhide\n\nwhen I receive [goal v]\nset [trans on or off v] to [On]\ngo to [front v] layer\ngo [forward v] (1) layers\nset x to (500)\nshow\nrepeat (6)\n    change x by (-80)\nend\nchange x by (-15)\nwait (0.6) seconds\nset [trans on or off v] to [Off]\nrepeat (5)\n    change x by (-80)\nend\nhide\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    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    create clone of (_myself_ v)\n    wait (pick random (0.2) to (0.6)) seconds\nend\n\nwhen I receive [stop all v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n@shadow\n\nwhen flag clicked\ngo to [back v] layer\nset [ghost v] effect to (75)\nforever\n    go to (player v)\nend\n\n@sun\n\nwhen I receive [start v]\nshow\nforever\n    if <<<<<(Stage) = [7]> or <(Stage) = [8]>> or <(Stage) = [9]>> or <(Stage) = [10]>> or <(Stage) = [11]>> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I receive [start v]\ngo to x: (-5) y: (-25)\nset size to (100) %\nset [sun suze v] to [100]\nforever\n    change size by ([cos v] of (Sun Suze) )\n    change [sun suze v] by (7)\nend\n\nwhen flag clicked\nhide\n\n@Intro\n\nwhen I start as a clone\nif <(Costume) = [Bar]> then\n    set [color v] effect to (120)\n    switch costume to (line 25 v)\n    show\n    switch costume to (sizehack v)\n    set x to (-300)\n    point in direction (65)\n    set size to (600) %\n    switch costume to (line 25 v)\n    repeat (24)\n        change x by (((0) - (x position)) / (4))\n        turn right (((90) - (direction)) / (5)) degrees\n    end\n    repeat (24)\n        change x by (((0) - (x position)) / (4))\n        set [cost v] to ((costume [number v]) + (-1))\n        switch costume to (Cost)\n        turn right (((90) - (direction)) / (5)) degrees\n    end\nend\n\nwhen flag clicked\nhide\nstart sound [Joel Corry x MNEK - Head & Heart \[Official Lyric Video\] v]\nset y to (175)\nset [costume v] to [Bar]\nrepeat (8)\n    create clone of (_myself_ v)\n    change y by (-50)\nend\nwait (2) seconds\ngo to x: (0) y: (0)\nset [costume v] to [ShockWave]\nset [change v] to [0]\nset [costume v] to [Grid]\ncreate clone of (_myself_ v)\nset [costume v] to [Circle]\ncreate clone of (_myself_ v)\nset [costume v] to [Loger]\ncreate clone of (_myself_ v)\nrepeat (18)\n    set [costume v] to [Arrow]\n    create clone of (_myself_ v)\n    set [costume v] to [Arrow2]\n    create clone of (_myself_ v)\n    set [changer v] to [30]\n    wait (0.1) seconds\n    set [costume v] to [ShockWave]\n    create clone of (_myself_ v)\n    set [changer v] to [0]\n    wait (0.25) seconds\nend\nset [costume v] to [bar2]\ncreate clone of (_myself_ v)\nset [costume v] to [bar3]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(Costume) = [ShockWave]> then\n    set [color v] effect to (150)\n    set [brightness v] effect to (100)\n    switch costume to (shockwave1 v)\n    set [ghost v] effect to (70)\n    show\n    switch costume to (sizehack v)\n    set x to (0)\n    set size to (0) %\n    switch costume to (shockwave1 v)\n    set size to (0) %\n    repeat (30)\n        go to [front v] layer\n        go [backward v] (2) layers\n        change x by (((0) - (x position)) / (4))\n        switch costume to ((costume [number v]) + (((300) - (size)) / (120)))\n        change size by (((600) - (size)) / (20))\n    end\n    repeat (10)\n        change [ghost v] effect by (5)\n        go to [front v] layer\n        go [backward v] (2) layers\n        change size by (-10)\n    end\n    hide\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Costume) = [Arrow]> then\n    show\n    point in direction (90)\n    set size to (100) %\n    set [ghost v] effect to (50)\n    switch costume to (arrow1 v)\n    set [brightness v] effect to (100)\n    set x to (-300)\n    set [destination v] to [-280]\n    repeat until <(costume [number v]) = [45]>\n        change x by (((Destination) - (x position)) / (4))\n        change [destination v] by (Changer)\n        switch costume to ((((x position) / (30)) + (12)) + (24))\n    end\n    hide\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Costume) = [Arrow2]> then\n    show\n    set [ghost v] effect to (50)\n    set size to (100) %\n    switch costume to (arrow1 v)\n    set [brightness v] effect to (100)\n    point in direction (-90)\n    set x to (300)\n    set [destination v] to [300]\n    repeat until <(costume [number v]) = [45]>\n        change x by (((Destination) - (x position)) / (4))\n        change [destination v] by ((Changer) * (-1))\n        switch costume to ((((x position) / (-30)) + (12)) + (24))\n    end\n    hide\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Costume) = [Line]> then\n    set [brightness v] effect to (100)\n    point in direction (pick random (1) to (360))\n    switch costume to (lineexplosion1 v)\n    show\n    set size to (0) %\n    repeat (5)\n        set [move v] to (((60) - (Move)) / (7))\n        move (Move) steps\n        change [move v] by (Move)\n        change size by (((100) - (size)) / (4))\n        go to [front v] layer\n        go [backward v] (4) layers\n    end\n    repeat (10)\n        set [move v] to (((60) - (Move)) / (7))\n        move (Move) steps\n        change [move v] by (Move)\n        next costume\n        change size by (((100) - (size)) / (4))\n        go to [front v] layer\n        go [backward v] (4) layers\n    end\n    delete this clone\nend\n\nwhen flag clicked\nwait (3) seconds\nrepeat (100)\n    set [costume v] to [Line]\n    create clone of (_myself_ v)\n    wait (0.015627586724) seconds\nend\n\nforever\n\nwhen I start as a clone\nif <(Costume) = [Logo]> then\n    show\nend\n\nwhen I start as a clone\nif <(Costume) = [Grid]> then\n    show\n    switch costume to (grid1 v)\n    set x to (0)\n    set size to (0) %\n    set [color v] effect to (120)\n    repeat (500)\n        go to [front v] layer\n        go [backward v] (2) layers\n        change x by ((() - (x position)) / (5))\n        change size by (((100) - (size)) / (5))\n    end\nend\n\nwhen I start as a clone\nif <(Costume) = [Grid]> then\n    forever\n        switch costume to (sizehack v)\n        set size to (120) %\n        switch costume to (grid1 v)\n        point in direction ((([sin v] of ((timer) * (200)) ) * (5)) + (90))\n        if <(Changer) > [10]> then\n            point in direction ((([sin v] of ((timer) * (200)) ) * (5)) + (90))\n            Shake Effect [2]\n            wait (0.1) seconds\n            go to [front v] layer\n            go [backward v] (2) layers\n        end\n    end\nend\n\ndefine Shake Effect (power)\nset [shake v] to (power)\nrepeat (power)\n    change [shake v] by (01)\n    set [xdest{shake} v] to (pick random ((Shake) * (-1)) to (Shake))\n    set [ydest{shake} v] to (pick random ((Shake) * (-1)) to (Shake))\n    change x by ((() - (XDest{Shake})) / (2))\n    change y by ((() - (YDest{Shake})) / (2))\nend\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nif <(Costume) = [Circle]> then\n    forever\n        show\n        switch costume to (sizehack v)\n        set size to (120) %\n        switch costume to (logo2 v)\n        set y to ((([abs v] of ([cos v] of ((timer) * (300)) ) ) * (100)) + (-50))\n        go to [front v] layer\n        go [backward v] (1) layers\n    end\nend\n\nwhen I start as a clone\nif <(Costume) = [Loger]> then\n    forever\n        show\n        switch costume to (sizehack v)\n        go to [front v] layer\n        set size to (120) %\n        switch costume to (logo v)\n        point in direction ((([sin v] of ((timer) * (300)) ) * (20)) + (90))\n        set y to ((([abs v] of ([sin v] of ((timer) * (300)) ) ) * (100)) + (-50))\n    end\nend\n\npoint in direction ((([sin v] of ((timer) * (200)) ) * (20)) + (90))\n\nwait (0) seconds\ngo to [front v] layer\n\nShake Effect [1]\n\nif <(Changer) > [10]> then\n\npoint in direction ((([sin v] of ((timer) * (200)) ) * (5)) + (90))\n\nswitch costume to (sizehack v)\n\nchange size by (10)\n\nchange size by (10)\n\nset [cost v] to ((costume [number v]) + (-1))\nswitch costume to (Cost)\n\nwhen I start as a clone\nif <(Costume) = [bar2]> then\n    show\n    switch costume to (bar v)\n    set x to (-300)\n    point in direction (90)\n    set size to (0) %\n    repeat (50)\n        go to [front v] layer\n        go [backward v] (-1) layers\n        change x by ((() - (x position)) / (5))\n        change size by (((100) - (size)) / (5))\n        turn right ((() - (direction)) / (5)) degrees\n    end\n    set x to (0)\n    repeat (10)\n        go to [front v] layer\n        go [backward v] (-1) layers\n        change x by (((x position) - (1)) / (3))\n        change size by (((size) - (101)) / (5))\n        turn right (((direction) - (1)) / (5)) degrees\n        change [ghost v] effect by (1)\n    end\n    repeat (20)\n        change [ghost v] effect by (5)\n        go to [front v] layer\n        go [backward v] (-1) layers\n        change x by (((x position) - (1)) / (3))\n        change size by (((size) - (101)) / (5))\n        turn right (((direction) - (1)) / (5)) degrees\n    end\nend\n\nwhen I start as a clone\nif <(Costume) = [bar3]> then\n    show\n    switch costume to (bar2 v)\n    set x to (300)\n    point in direction (90)\n    set size to (0) %\n    repeat (50)\n        go to [front v] layer\n        go [backward v] (-1) layers\n        change x by ((() - (x position)) / (5))\n        change size by (((100) - (size)) / (5))\n        turn right ((() - (direction)) / (5)) degrees\n    end\n    repeat (10)\n        go to [front v] layer\n        go [backward v] (-1) layers\n        change x by (((x position) - (-1)) / (3))\n        change size by (((size) - (101)) / (5))\n        turn right (((direction) - (-1)) / (5)) degrees\n        change [ghost v] effect by (1)\n    end\n    repeat (20)\n        change [ghost v] effect by (5)\n        go to [front v] layer\n        go [backward v] (-1) layers\n        change x by (((x position) - (-1)) / (3))\n        change size by (((size) - (101)) / (5))\n        turn right (((direction) - (-1)) / (5)) degrees\n    end\nend\n\nset [color v] effect to (120)\n\nset [color v] effect to (120)\n\nwhen I start as a clone\nif <(Costume) = [bar3]> then\n    wait (0.7) seconds\n    broadcast (Delete v)\nend\n\nwhen I receive [delete v]\nif <(costume [number v]) < [259]> then\n    delete this clone\nend\n\n