Minecraft Adventure | A Platformer #games #all #trending (Minecraft Platformer)
@Stage\n\nwhen [up arrow v] key pressed\nif <(editLevel) = [1]> then\n    if <not <key (up arrow v) pressed?>> then\n        change [editblock# v] by (1)\n        if <(editBlock#) > (length of [blocklist v])> then\n            set [editblock# v] to [1]\n        end\n    end\nend\n\nwhen [down arrow v] key pressed\nif <(editLevel) = [1]> then\n    if <not <key (down arrow v) pressed?>> then\n        change [editblock# v] by (-1)\n        if <(editBlock#) < [1]> then\n            set [editblock# v] to (length of [blocklist v])\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    erase all\n    if <(editLevel) = [1]> then\n        set [editselectedblock v] to (join (item ((editBlock#) - (1)) of [blocklist v]) (join [ | ] (join (item (editBlock#) of [blocklist v]) (join [ | ] (item ((editBlock#) + (1)) of [blocklist v])))))\n    end\n    broadcast (tickLevel v)\nend\n\nwhen flag clicked\nset [editlevel v] to [0]\nbroadcast (Start v)\n\nset [editblock# v] to [1]\ndelete all of [blocklist v]\nadd [Air] to [blocklist v]\nadd [Lava] to [blocklist v]\nadd [Cobblestone] to [blocklist v]\nadd [CoalOre] to [blocklist v]\nadd [IronOre] to [blocklist v]\nadd [Stone] to [blocklist v]\nadd [Sand] to [blocklist v]\nadd [Dirt] to [blocklist v]\nadd [Grass] to [blocklist v]\nadd [TallGrass] to [blocklist v]\nadd [Flower1] to [blocklist v]\nadd [Flower2] to [blocklist v]\nadd [Wood] to [blocklist v]\nadd [Log] to [blocklist v]\nadd [Leaves] to [blocklist v]\nadd [Sign] to [blocklist v]\nadd [Water] to [blocklist v]\nadd [WaterFull] to [blocklist v]\nadd [Ladder] to [blocklist v]\nadd [RedstoneDust] to [blocklist v]\nadd [RedstoneDustOn] to [blocklist v]\nadd [Lever] to [blocklist v]\nadd [Piston] to [blocklist v]\nadd [PistonExtended] to [blocklist v]\nadd [PistonArm] to [blocklist v]\nadd [Mushroom] to [blocklist v]\nadd [MushroomStem] to [blocklist v]\nadd [Minecart] to [blocklist v]\nadd [Rail] to [blocklist v]\nadd [Rail2] to [blocklist v]\n\nwhen I receive [edit v]\nshow variable [editselectedblock v]\nset [editlevel v] to [1]\n\nbroadcast (boss fight v)\n\nwhen flag clicked\nforever\n    play sound (pick random (1) to (12)) until done\nend\n\nwhen flag clicked\nhide variable [editselectedblock v]\nset [editlevel v] to [0]\n\nwhen I receive [boss fight v]\nstop all sounds\nstop [other scripts in sprite v]\nstart sound [megalo strike back v]\n\nbroadcast (edit v)\n\nwhen I receive [restartbossfight v]\nstop all sounds\nstop [other scripts in sprite v]\ndelete this clone\n\n@Blank\n\n@Player\n\nwhen flag clicked\nbroadcast (next level v)\n\nwhen I receive [next level v]\nset [xvel v] to [0]\nset [yvel v] to [0]\nset [startx v] to (x position)\nset [starty v] to (y position)\nif <([costume # v] of [level v]) = [5]> then\n    go to x: (-230) y: (-60)\nend\nwait until <(x position) > [238]>\nbroadcast (next level v)\nset x to (-240)\n\ndefine runPhysics (gravity) (speed) (jumppower) (friction)\nset rotation style [left-right v]\nset [oldx v] to (x position)\nset [oldy v] to (y position)\nchange y by (yvel)\nif <not <touching (level v)?>> then\n    set [onground? v] to [0]\n    change [yvel v] by (gravity)\nelse\n    set [onground? v] to [1]\n    if <(yvel) > [0]> then\n        set [onground? v] to [0]\n    end\n    set [yvel v] to [0]\n    set y to (oldy)\nend\nif <key (a v) pressed?> then\n    point in direction (-90)\n    set [xvel v] to ((speed) * (-1))\nend\nif <key (d v) pressed?> then\n    point in direction (90)\n    set [xvel v] to (speed)\nend\nchange x by (xvel)\nif <touching (level v)?> then\n    set x to (oldx)\nend\nset [xvel v] to ((xvel) * (friction))\nif <<key (w v) pressed?> and <(onGround?) = [1]>> then\n    set [yvel v] to (jumppower)\nend\nif <<key (w v) pressed?> and <touching (ladder v)?>> then\n    set [yvel v] to [3]\nend\n\nwhen I receive [start v]\nset rotation style [left-right v]\nshow\ngo to x: (-145) y: (23)\nset [xvel v] to [0]\nset [yvel v] to [0]\nforever\n    switch costume to (hitbox v)\n    runPhysics [-1] [5] [11] [.75]\n    switch costume to (walk1 v)\n    if <(xvel) > [.5]> then\n        switch costume to (join [walk] (animFrame))\n    else\n        if <(xvel) < [-.5]> then\n            switch costume to (join [walk] (animFrame))\n        end\n    end\n    if <touching (lava v)?> then\n        start sound [hurt v]\n        broadcast (die v)\n        hide\n        wait (.1) seconds\n        show\n        go to x: (startx) y: (starty)\n        set [xvel v] to [0]\n        set [yvel v] to [0]\n    end\n    go to [front v] layer\nend\n\nwhen I receive [start v]\ngo to x: (-173) y: (23)\nset [startx v] to (x position)\nset [starty v] to (y position)\nwait until <(x position) > [238]>\nbroadcast (next level v)\nset x to (-240)\n\nwhen I receive [start v]\nforever\n    set [animframe v] to [1]\n    wait (.08) seconds\n    repeat (7)\n        change [animframe v] by (1)\n        wait (.08) seconds\n    end\nend\n\nwhen I receive [edit v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [boss fight v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [next level v]\nwait until <touching (cutscene v)?>\nstop [other scripts in sprite v]\nhide\n\n@editor\n\ndefine createLevel\nshow\nset [# v] to [0]\ngo to x: (-220) y: (160)\nrepeat (9)\n    repeat (12)\n        change [# v] by (1)\n        add [Air] to [currentlevel v]\n        create clone of (_myself_ v)\n        change x by (40)\n    end\n    set x to (-220)\n    change y by (-40)\nend\nhide\nset [# v] to [0]\n\nwhen I receive [ticklevel v]\nhide\nif <not <(#) = [0]>> then\n    wait until <(editLevel) = [1]>\n    show\n    switch costume to (hitbox v)\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        replace item (#) of [currentlevel v] with (item (editBlock#) of [blocklist v])\n    end\n    switch costume to (item (#) of [currentlevel v])\nend\n\nwhen flag clicked\ndelete all of [currentlevel v]\ncreateLevel\n\n@Level\n\nwhen I receive [lever v]\nnext costume\nif <<(costume [number v]) = [2]> or <<(costume [number v]) = [4]> or <(costume [number v]) = [14]>>> then\n    start sound [pistonOn v]\nend\n\nwhen I receive [start v]\nshow\nswitch costume to (1 v)\nforever\n    go to [front v] layer\nend\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [edit v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [boss fight v]\nstop [other scripts in sprite v]\nhide\n\n@Ladder\n\nwhen flag clicked\nhide\nforever\n    switch costume to ([costume # v] of [level v])\nend\n\nwhen I receive [start v]\nshow\n\nwhen I receive [edit v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [boss fight v]\nstop [other scripts in sprite v]\nhide\n\n@Lever\n\nwhen flag clicked\nhide\nforever\n    switch costume to ([costume # v] of [level v])\n    go to [front v] layer\nend\n\nwhen I receive [next level v]\nwait until <<touching (player v)?> and <key (e v) pressed?>>\nbroadcast (lever v)\nstart sound [leverOn v]\n\nwhen I receive [start v]\nwait until <<touching (player v)?> and <key (e v) pressed?>>\nbroadcast (lever v)\nstart sound [leverOn v]\n\nwhen I receive [start v]\nshow\n\nwhen I receive [edit v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [boss fight v]\nstop [other scripts in sprite v]\nhide\n\n@Background\n\nwhen flag clicked\nhide\nforever\n    switch costume to ([costume # v] of [level v])\n    go to [back v] layer\nend\n\nwhen I receive [start v]\nshow\n\nwhen I receive [edit v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [boss fight v]\nstop [other scripts in sprite v]\nhide\n\n@Lava\n\nwhen flag clicked\nhide\nforever\n    switch costume to ([costume # v] of [level v])\nend\n\nwhen I receive [start v]\nshow\n\nwhen I receive [edit v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [boss fight v]\nstop [other scripts in sprite v]\nhide\n\n@thumbnail\n\nwhen flag clicked\nhide\n\nshow\ngo to [front v] layer\n\n@cutscene\n\nwhen I receive [boss fight v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [next level v]\nif <([costume # v] of [level v]) = [16]> then\n    switch costume to (costume1 v)\n    show\n    wait until <touching (player v)?>\n    start sound [assets_minecraft_sounds_minecart_base v]\n    switch costume to (costume2 v)\n    repeat (13)\n        next costume\n        wait (.02) seconds\n    end\n    wait (.8) seconds\n    broadcast (boss fight v)\nend\n\n@Steve\n\nwhen flag clicked\nhide\n\nwhen I receive [boss fight v]\nset [bossfighthealth v] to [5]\nset [costume v] to [1]\nshow\nset size to (35) %\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (116) y: (70)\nforever\n    go to [front v] layer\n    go [backward v] (1) layers\n    switch costume to (big v)\n    if <<key (d v) pressed?> and <(x) > [-10]>> then\n        change [x v] by (-1)\n        change x by (8)\n        change y by (-5)\n    end\n    if <<key (a v) pressed?> and <(x) < [24]>> then\n        change [x v] by (1)\n        change x by (-8)\n        change y by (5)\n    end\n    if <<key (w v) pressed?> and <(y) < [10]>> then\n        change [y v] by (1)\n        change x by (-8)\n        change y by (-5)\n    end\n    if <<key (s v) pressed?> and <(y) > [-12]>> then\n        change [y v] by (-1)\n        change x by (8)\n        change y by (5)\n    end\n    switch costume to (costume)\nend\n\nwhen I receive [boss fight v]\nforever\n    wait until <key (space v) pressed?>\n    start sound [start v]\n    set [costume v] to [1]\n    wait (.3) seconds\n    start sound [mid v]\n    change [costume v] by (1)\n    wait (.3) seconds\n    change [costume v] by (1)\n    wait (.3) seconds\n    change [costume v] by (1)\n    start sound [end v]\n    wait until <not <key (space v) pressed?>>\n    change [costume v] by (1)\n    create clone of (arrow v)\n    wait (.6) seconds\n    set [costume v] to [1]\nend\n\nwhen I receive [leave v]\nstop [other scripts in sprite v]\nglide (.6) secs to x: (60) y: (125)\nwait (.2) seconds\nrepeat (100)\n    switch costume to (big v)\n    change x by (-8)\n    change y by (-5)\n    switch costume to (1 v)\nend\nbroadcast (end v)\n\nwhen I receive [restartbossfight v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [boss fight v]\nset [costume v] to [1]\nshow\nset size to (35) %\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (116) y: (70)\nforever\n    wait until <touching (obstacles v)?>\nend\n\nwhen I receive [boss fight v]\nset [bossfighthealth v] to [5]\nwait until <(bossfightHealth) < [1]>\nbroadcast (restartBossfight v)\n\nbroadcast (boss fight v)\n\n@arrow\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\npoint in direction (90)\nset size to (35) %\nswitch costume to (costume1 v)\nshow\nstart sound [assets_minecraft_sounds_item_crossbow_shoot1 v]\ngo to (steve v)\ngo to [front v] layer\nrepeat until <<touching (obstacles v)?> or <touching (_edge_ v)?>>\n    change x by (-16)\n    change y by (-10)\nend\nif <touching (_edge_ v)?> then\n    repeat (11)\n        switch costume to (costume2 v)\n        change x by (-16)\n        change y by (-10)\n        switch costume to (costume1 v)\n    end\nend\nif <touching (obstacles v)?> then\n    repeat (2)\n        change x by (3)\n        turn left (6) degrees\n        change y by (6)\n    end\n    repeat (4)\n        change x by (2)\n        turn left (6) degrees\n        change y by (-5)\n    end\n    repeat (8)\n        turn left (2) degrees\n        change y by (-10)\n    end\n    repeat (90)\n        switch costume to (costume2 v)\n        change x by (6)\n        change y by (3)\n        switch costume to (costume1 v)\n    end\n    delete this clone\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [restartbossfight v]\nstop [other scripts in sprite v]\ndelete this clone\n\n@rails\n\nwhen I receive [boss fight v]\nset volume to (100) %\nforever\n    play sound [assets_minecraft_sounds_minecart_inside v] until done\nend\n\nwhen I receive [boss fight v]\nclear graphic effects\ngo to [back v] layer\nshow\nforever\n    go to x: (0) y: (0)\n    repeat (5)\n        change x by (6)\n        change y by (3)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nrepeat (10)\n    change volume by (-10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [restartbossfight v]\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\n@obstacles\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nset [exploding? v] to [0]\nif <(cloneType) = [1]> then\n    switch costume to (barrel v)\n    clear graphic effects\n    show\n    set size to (25) %\n    go to x: (-258) y: (pick random (-100) to (140))\n    set [floorpos v] to ((y position) - (100))\n    set [xvel v] to (pick random (12) to (16))\n    set [yvel v] to (pick random (4) to (7))\n    repeat until <<(x position) > [270]> or <touching (arrow v)?>>\n        switch costume to (barrel3 v)\n        turn right (xVel) degrees\n        change x by (xVel)\n        change y by (yVel)\n        change [floorpos v] by ((xVel) / (2))\n        change [yvel v] by (-1)\n        set [xvel v] to ((xVel) * (.98))\n        if <(y position) < (floorPos)> then\n            set [yvel v] to [12]\n            set [xvel v] to (pick random (6) to (8))\n        end\n        switch costume to (barrel v)\n    end\n    if <touching (arrow v)?> then\n        switch costume to (barrel2 v)\n        start sound [assets_minecraft_sounds_random_break v]\n        repeat (5)\n            turn left (5) degrees\n            change x by (-5)\n            change y by (4)\n        end\n        repeat (3)\n            turn left (9) degrees\n            change x by (-5)\n            change y by (-4)\n        end\n        repeat (4)\n            turn left (16) degrees\n            change x by (-5)\n            change y by (-12)\n        end\n        repeat (4)\n            turn left (16) degrees\n            change x by (-5)\n            change y by (-12)\n            change [ghost v] effect by (25)\n        end\n    end\n    delete this clone\nelse\n    start sound [fuse v]\n    set [mybounces v] to [0]\n    switch costume to (tnt v)\n    clear graphic effects\n    show\n    set size to (25) %\n    go to x: (-258) y: (pick random (-100) to (140))\n    set [floorpos v] to ((y position) - (100))\n    set [xvel v] to [4]\n    set [yvel v] to (pick random (4) to (7))\n    repeat until <<(x position) > [270]> or <<touching (arrow v)?> or <(myBounces) > [3]>>>\n        switch costume to (barrel3 v)\n        turn right (xVel) degrees\n        change x by (xVel)\n        change y by (yVel)\n        change [floorpos v] by ((xVel) / (2))\n        change [yvel v] by (-1)\n        set [xvel v] to ((xVel) * (.98))\n        if <(y position) < (floorPos)> then\n            set [yvel v] to [13]\n            set [xvel v] to [4]\n        end\n        switch costume to (tnt v)\n    end\n    if <touching (arrow v)?> then\n        stop [other scripts in sprite v]\n        set [exploding? v] to [1]\n        set size to (pick random (35) to (40)) %\n        start sound [assets_minecraft_sounds_random_explode4 v]\n        switch costume to (1 v)\n        repeat (4)\n            next costume\n            wait (.1) seconds\n        end\n    end\n    if <(myBounces) > [3]> then\n        stop [other scripts in sprite v]\n        set [exploding? v] to [1]\n        set size to (pick random (55) to (67)) %\n        start sound [assets_minecraft_sounds_random_explode4 v]\n        switch costume to (1 v)\n        repeat (4)\n            next costume\n            wait (.1) seconds\n        end\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nforever\n    wait until <(y position) < (floorPos)>\n    change [mybounces v] by (1)\n    set [pitch v] effect to (pick random (-10) to (10))\n    start sound [Minecraft Step Ladder 2 Sound Effect Free _ Download Link2 v]\nend\n\nwhen I receive [boss fight v]\nreset timer\nwait (5) seconds\nset [clonetype v] to [1]\ncreate clone of (_myself_ v)\nwait (10) seconds\nset [clonetype v] to [2]\ncreate clone of (_myself_ v)\nwait (4) seconds\nrepeat until <(timer) > [115]>\n    wait (pick random (2.5) to (4)) seconds\n    set [clonetype v] to (pick random (1) to (2))\n    if <(cloneType) = [1]> then\n        repeat (pick random (1) to (5))\n            create clone of (_myself_ v)\n        end\n    else\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I receive [restartbossfight v]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I start as a clone\nif <(cloneType) = [1]> then\n    wait until <touching (steve v)?>\n    start sound [hurt v]\n    change [bossfighthealth v] by (-1)\nelse\n    wait until <<touching (steve v)?> and <(exploding?) = [1]>>\n    start sound [hurt v]\n    change [bossfighthealth v] by (-1)\nend\n\n@bossfight text\n\nwhen I receive [boss fight v]\nset [ghost v] effect to (13)\nshow\nswitch costume to (costume1 v)\ngo to [front v] layer\nwait (4) seconds\nnext costume\nwait (5) seconds\nnext costume\nwait (5) seconds\nnext costume\nwait (6) seconds\nhide\nwait until <(timer) > [119]>\nswitch costume to (costume5 v)\nshow\nwait (2) seconds\nbroadcast (leave v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [boss fight v]\nwait (.2) seconds\nforever\n    go to [front v] layer\nend\n\nwhen I receive [end v]\nwait (3) seconds\nshow\nset [ghost v] effect to (100)\nswitch costume to (costume6 v)\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\n\nwhen I receive [restartbossfight v]\nstop [other scripts in sprite v]\ndelete this clone\n\n@bossfightBg\n\nwhen flag clicked\nhide\n\nwhen I receive [boss fight v]\nshow\nforever\n    go to [back v] layer\n    go to x: (0) y: (0)\n    repeat (34)\n        change x by (15)\n        change y by (3.5)\n    end\nend\n\nwhen I receive [end v]\nhide\n\nwhen I receive [restartbossfight v]\nstop [other scripts in sprite v]\nhide\n\n@SteveHearts\n\nwhen I receive [boss fight v]\nswitch costume to (h5 v)\nshow\nforever\n    switch costume to (join [h] (bossfightHealth))\n    go to (steve v)\n    change y by (72)\n    change x by (20)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [restartbossfight v]\nstop [other scripts in sprite v]\nhide\n\n@gameover\n\nwhen flag clicked\nhide\n\nwhen I receive [restartbossfight v]\nwait (.2) seconds\nstart sound [Mellohi v]\nswitch costume to (go4 v)\nshow\nwait (1) seconds\nrepeat (3)\n    wait (1) seconds\n    next costume\nend\nwait (1) seconds\nhide\nstop all sounds\nbroadcast (boss fight v)\n\n
-Use WAD to move!\n-Press E to interact with things!\n\n-All levels are possible!\n-Heart if you beat the game!