Minecraft a Platformer Mobile friendly #Games #all #minecraft #10ontrending
@Stage\n\nwhen flag clicked\nforever\n    play sound [minecraft song v] until done\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nforever\n    if <(Part) = [Nether]> then\n        switch backdrop to (backdrop2 v)\n    end\n    if <(Part) = [end]> then\n        switch backdrop to (backdrop3 v)\n    end\nend\n\n@HITBOX\n\ndefine Jump\nforever\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > (y position)> and <mouse down?>>> then\n        set [yvel v] to [15]\n        repeat until <touching (level v)?>\n            set [old y v] to (y position)\n            change [yvel v] by (-1)\n            change y by (Yvel)\n            if <touching (level v)?> then\n                set y to (Old Y)\n                set [yvel v] to [0]\n                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > (y position)> and <mouse down?>>> then\n                    Jump\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nJump\n\ndefine Move x (joystickx)\nchange [speed x v] by ((joystickx) * (0.9))\nset [speed x v] to ((Speed X) * (0.9))\nchange x by (Speed X)\n\nwhen flag clicked\nforever\n    Move x (<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<(mouse x) > (x position)> and <mouse down?>>> - <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<(x position) > (mouse x)> and <mouse down?>>>)\nend\n\ndefine Collisions\nforever\n    if <<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<(mouse x) > (x position)> and <mouse down?>>> or <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<(x position) > (mouse x)> and <mouse down?>>>> then\n        forever\n            if <touching (level v)?> then\n                repeat until <not <touching (level v)?>>\n                    change x by ((0) - (Speed X))\n                    set [speed x v] to [0]\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nCollisions\n\nwhen flag clicked\ngo to x: (-242) y: (-105)\nset [ghost v] effect to (0)\n\nwhen flag clicked\nRespawn\nforever\n    if <<(x position) > [239]> and <not <<(LEVEL) = [7]> or <(LEVEL) = [12]>>>> then\n        change [level v] by (1)\n        Respawn\n    end\n    if <<<touching (mob v)?> or <<touching (danger v)?> or <<touching (ender man v)?> or <touching (bomb v)?>>>> or <<touching (fireball v)?> and <<(LEVEL) = [8]> or <(LEVEL) = [10]>>>> then\n        change [hp v] by (-1)\n        Respawn\n        broadcast (die v)\n    end\nend\n\ndefine Respawn\npoint in direction (90)\ngo to x: (-242) y: (-97)\nGROUND\n\ndefine GROUND\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        change y by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    set [touching v] to <touching (level v)?>\nend\n\nwhen flag clicked\nforever\n    if <<<(LEVEL) = [7]> or <(LEVEL) = [12]>> and <<touching (nether portal v)?> or <touching (end portal v)?>>> then\n        change [level v] by (1)\n        Respawn\n        if <touching (nether portal v)?> then\n            broadcast (NETHER v)\n        end\n    end\nend\n\nwhen I receive [die v]\nrepeat (5)\n    set [brightness v] effect to (100)\n    wait (0.05) seconds\n    set [brightness v] effect to (0)\n    wait (0.05) seconds\nend\n\nrepeat (4)\n    go to (nether portal v)\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nforever\n    if <not <<key (any v) pressed?> or <mouse down?>>> then\n        switch costume to (a1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > (y position)> and <mouse down?>>> and <(Y) > [0]>> then\n        repeat until <(Yvel) = [0]>\n            if <touching (level v)?> then\n                set [y vel2 v] to [0]\n                repeat until <touching (level v)?>\n                    set [old y 2 v] to (y position)\n                    change y by (y vel2)\n                    change [y vel2 v] by (-1)\n                    if <touching (level v)?> then\n                        set [yvel v] to [0]\n                        set y to (old y 2)\n                    end\n                end\n            end\n        end\n    end\nend\n\n@level\n\nwhen flag clicked\ngo to [back v] layer\nset [part v] to [Overworld]\nset [level v] to [1]\nforever\n    switch costume to (join [LEVEL] (LEVEL))\n    if <(LEVEL) = [8]> then\n        set [part v] to [Nether]\n    end\n    if <(LEVEL) = [13]> then\n        set [part v] to [end]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [13]> then\n        set [hp v] to [3]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [8]> then\n        set [hp v] to [3]\n        stop [this script v]\n    end\nend\n\n@End Portal\n\nwhen flag clicked\nhide\nforever\n    if <(LEVEL) = [12]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (hitbox v)?> then\n        set [hp v] to [3]\n        stop [this script v]\n    end\nend\n\n@Nether portal\n\nwhen flag clicked\nhide\nforever\n    if <(LEVEL) = [7]> then\n        show\n    else\n        hide\n    end\nend\n\n@DANGER\n\nwhen flag clicked\ngo to x: (27) y: (-113)\nforever\n    go to [back v] layer\n    switch costume to (LEVEL)\nend\n\nset y to ((-121) + (([sin v] of ((timer) * (180)) ) * (8)))\n\n@220px-Ghast\n\nwhen flag clicked\nset [level v] to [1]\nhide\nforever\n    if <<(LEVEL) = [8]> or <(LEVEL) = [10]>> then\n        show\n        repeat until <<(LEVEL) = [9]> or <(LEVEL) = [11]>>\n            go to x: (0) y: (98)\n            point in direction (-90)\n            repeat (50)\n                next costume\n                change x by (4)\n            end\n            point in direction (90)\n            repeat (50)\n                next costume\n                change x by (-4)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    if <<(LEVEL) = [8]> or <(LEVEL) = [10]>> then\n        show\n        repeat until <<(LEVEL) = [9]> or <(LEVEL) = [11]>>\n            wait (pick random (1) to (3)) seconds\n            create clone of (fireball v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(LEVEL) = [9]> or <(LEVEL) = [11]>> then\n        hide\n    end\nend\n\ndelete (1) of [banned v]\n\n@fireball\n\nwhen flag clicked\nhide\nforever\n    if <<(LEVEL) = [9]> or <(LEVEL) = [11]>> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nif <<(LEVEL) = [8]> or <(LEVEL) = [10]>> then\n    show\nelse\n    hide\n    delete this clone\nend\ngo to (220px-ghast v)\nset [x v] to ([x position v] of [hitbox v])\nset [y v] to ([y position v] of [hitbox v])\nglide (pick random (0.3) to (1)) secs to x: (x) y: (y)\ndelete this clone\n\n@ENDER MAN\n\nwhen flag clicked\nhide\nset [level v] to [1]\nforever\n    if <(LEVEL) = [13]> then\n        repeat until <(LEVEL) = [14]>\n            go to x: (42) y: (-35)\n            show\n            point in direction (90)\n            repeat (50)\n                move (1) steps\n            end\n            point in direction (-90)\n            repeat (50)\n                move (1) steps\n            end\n        end\n    end\n    if <(LEVEL) = [14]> then\n        repeat until <(LEVEL) = [15]>\n            go to x: (42) y: (-35)\n            show\n            point in direction (90)\n            repeat (50)\n                move (1) steps\n            end\n            point in direction (-90)\n            repeat (50)\n                move (1) steps\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    wait (0.1) seconds\n    next costume\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [15]> then\n        hide\n    end\nend\n\n@mob\n\nwhen flag clicked\nhide\nset [level v] to [1]\nforever\n    if <(LEVEL) = [3]> then\n        repeat until <(LEVEL) = [4]>\n            go to x: (42) y: (-6)\n            show\n            switch costume to (zombie1 v)\n            repeat (50)\n                move (1) steps\n            end\n            switch costume to (zombie2 v)\n            repeat (50)\n                move (-1) steps\n            end\n        end\n    end\n    if <(LEVEL) = [4]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(LEVEL) = [4]> or <(LEVEL) = [8]>> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <<(LEVEL) = [3]> or <(LEVEL) = [7]>>> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (diamond sword v)?> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [7]> then\n        repeat until <(LEVEL) = [8]>\n            go to x: (0) y: (-71)\n            show\n            switch costume to (zombie1 v)\n            repeat (100)\n                move (1) steps\n            end\n            switch costume to (zombie2 v)\n            repeat (100)\n                move (-1) steps\n            end\n        end\n    end\n    if <(LEVEL) = [4]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [8]> then\n        forever\n            hide\n        end\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (174) y: (200)\nhide\nforever\n    wait (pick random (5) to (10)) seconds\n    show\n    repeat (10)\n        change y by (-4)\n    end\n    repeat (3)\n        change y by (3)\n    end\n    repeat (2)\n        change y by (-4.5)\n    end\n    wait (1) seconds\n    repeat until <(y position) > [190]>\n        change y by (4)\n    end\n    hide\nend\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\n    if <(HP) = [0]> then\n        show\n        switch costume to (dcw9acc-4dc94824-5e0d-4922-835e-6807f8f720f8 v)\n        create clone of (_myself_ v)\n        stop [all v]\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\n    if <(HP) = [0]> then\n        show\n        switch costume to (dcw9acc-4dc94824-5e0d-4922-835e-6807f8f720f8 v)\n        create clone of (_myself_ v)\n        stop [all v]\n    end\nend\n\n@Sprite2\n\nwhen I receive [nether v]\ngo to [front v] layer\nshow\nset [ghost v] effect to (30)\nrepeat (40)\n    change [whirl v] effect by (40)\nend\nhide\n\nwhen flag clicked\nclear graphic effects\n\n@Steve bomb\n\nwhen flag clicked\nhide\nforever\n    if <(LEVEL) = [16]> then\n        if <key (space v) pressed?> then\n            wait until <not <key (space v) pressed?>>\n            create clone of (_myself_ v)\n        end\n    end\nend\n\nwhen I start as a clone\nshow\ngo to (hitbox v)\nset [steve x v] to ([x position v] of [ender dragon v])\nset [steve y v] to ([y position v] of [ender dragon v])\nglide (0.7) secs to x: (STEVE X) y: (STEVE Y)\ndelete this clone\n\n@HP\n\nwhen flag clicked\nset [hp v] to [3]\nforever\n    if <(HP) = [0]> then\n        switch costume to (0 v)\n    end\n    if <(HP) = [1]> then\n        switch costume to (1 v)\n    end\n    if <(HP) = [2]> then\n        switch costume to (2 v)\n    end\n    if <(HP) = [3]> then\n        switch costume to (3 v)\n    end\nend\n\nset [hp v] to [3]\n\nwhen I receive [die v]\nset [shake v] to [10]\nrepeat (10)\n    go to x: ((pick random ((0) - (shake)) to (shake)) + (-187)) y: ((pick random ((0) - (shake)) to (shake)) + (159))\n    change [shake v] by (-1)\nend\ngo to x: (-187) y: (159)\n\n@thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen I receive [yes v]\n\ngo to [front v] layer\n\n@ender dragon\n\nwhen flag clicked\nforever\n    next costume\nend\n\nwhen flag clicked\nhide\ngo to x: (-100) y: (81)\nforever\n    if <(LEVEL) = [16]> then\n        show\n        point in direction (-90)\n        repeat (50)\n            change x by (4)\n        end\n        point in direction (90)\n        repeat (50)\n            change x by (-4)\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide\ngo to x: (-100) y: (81)\nforever\n    if <(LEVEL) = [16]> then\n        repeat until <(health) = [0]>\n            wait (1) seconds\n            create clone of (bomb v)\n        end\n    end\nend\n\nwhen flag clicked\nset [health v] to [5]\n\nwhen flag clicked\nforever\n    if <touching (steve bomb v)?> then\n        wait until <not <touching (steve bomb v)?>>\n        change [health v] by (-1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(health) = [0]> then\n        hide\n        broadcast (yes v) and wait\n    end\nend\n\n@Bomb\n\nwhen I start as a clone\nif <(health) = [0]> then\n    hide\nelse\n    show\nend\ngo to (ender dragon v)\nset [x v] to ([x position v] of [hitbox v])\nset [y v] to ([y position v] of [hitbox v])\nglide (1) secs to x: (X) y: (Y)\ndelete this clone\n\nwhen flag clicked\nhide\n\n@health bar\n\nwhen flag clicked\nforever\n    hide\n    if <(LEVEL) = [16]> then\n        show\n        if <(health) = [5]> then\n            switch costume to (5 v)\n        end\n        if <(health) = [4]> then\n            switch costume to (4 v)\n        end\n        if <(health) = [3]> then\n            switch costume to (3 v)\n        end\n        if <(health) = [2]> then\n            switch costume to (2 v)\n        end\n        if <(health) = [1]> then\n            switch costume to (1 v)\n        end\n        if <(health) = [0]> then\n            switch costume to (0 v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    go to x: ([x position v] of [ender dragon v]) y: ([y position v] of [ender dragon v])\n    if <(health) = [0]> then\n        hide\n    end\nend\n\ngo to (ender dragon v)\n\nwhen flag clicked\nforever\n    if <(LEVEL) = [16]> then\n        set [hp v] to [3]\n        stop [this script v]\n    end\nend\n\n@YOU MADE IT\n\nwhen I receive [yes v]\ngo to [front v] layer\nshow\nstop [all v]\n\nwhen flag clicked\nhide\n\ngo to [front v] layer\n\n@you died\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [hp v] to [3]\nhide\nforever\n    go to [front v] layer\n    if <(HP) = [0]> then\n        show\n        switch costume to (dcw9acc-4dc94824-5e0d-4922-835e-6807f8f720f8 v)\n        create clone of (_myself_ v)\n        stop [all v]\n    end\nend\n\n@you died 2\n\nwhen flag clicked\nset [hp v] to [3]\nhide\nforever\n    if <(HP) = [0]> then\n        show\n        switch costume to (costume1 v)\n        create clone of (_myself_ v)\n        stop [all v]\n    end\nend\n\n@cloud\n\nwhen flag clicked\nreset timer\nrepeat until <<(health) = [0]> and <(LEVEL) = [16]>>\n    set [your time v] to (timer)\nend\n\nwhen flag clicked\nforever\n    if <<(your time) < (☁ record)> and <<(LEVEL) = [16]> and <(health) = [0]>>> then\n        set [☁ record v] to (your time)\n    end\nend\n\n@Banned\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    go to [front v] layer\n    if <[banned v] contains (username)?> then\n        show\n        go to [front v] layer\n        stop [all v]\n    else\n        hide\n    end\nend\n\n@Sprite3\n\ndefine Jump\nforever\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > (y position)> and <mouse down?>>> then\n        set [yvel v] to [15]\n        repeat until <touching (level v)?>\n            set [old y v] to (y position)\n            change [yvel v] by (-2.7)\n            change y by (Yvel)\n            if <touching (level v)?> then\n                set y to (Old Y)\n                set [yvel v] to [0]\n                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > (y position)> and <mouse down?>>> then\n                    Jump\n                end\n            end\n        end\n    end\nend\n\n
https://scratch.mit.edu/projects/781413489 join my contest\nReshared again\nNote: i will not allow advertising anymore!\npretty easy game\nDOUBLE CLICK FLAG\nHow to defeat the ender dragon.\n----------------------------------------------------------------------------\nYou can only shoot bombs when you reach the ender-dragon. The ender dragon has 5 lives. So you have to press space to shoot at him.