Minecraft - Into The Nether - A Platformer                           #games

Instructions: This is a very special platformer!! \nYou have two cubes. \nThe white one can't touch white and the black one can't touch black!!\nInstructions:\n- White Cube: Arrow keys\n- Black cube: WASD\n- Skip levels with "z"\n- Have fun!!!

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nforever\n    if <(Level) = [15]> then\n        switch backdrop to (backdrop3 v)\n    end\n    if <(Level) = [16]> then\n        switch backdrop to (backdrop2 v)\n    end\n    if <(Level) = [17]> then\n        switch backdrop to (backdrop4 v)\n    end\n    if <(Level) = [20]> then\n        switch backdrop to (backdrop2 v)\n    end\n    if <(Level) = [21]> then\n        switch backdrop to (backdrop5 v)\n    end\nend\n\n@Lore\n\nwhen flag clicked\nshow\nclear graphic effects\ngo to [back v] layer\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nwait (5.8) seconds\nwait (5) seconds\nfade\nwait (5) seconds\nfade\nwait (5) seconds\nfade\nwait (5) seconds\nfade\nwait (5) seconds\nfade\nwait (5) seconds\nStart\n\ndefine fade\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\nnext costume\nrepeat (10)\n    change [brightness v] effect by (10)\nend\n\ndefine Start\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\nwait (1) seconds\nrepeat (30)\n    change [ghost v] effect by (4)\nend\nbroadcast (Game/Animation v)\n\nwhen flag clicked\nwait (5.8) seconds\nforever\n    play sound [ac creed OST Epic Medley v] until done\nend\n\n@Intro\n\nwhen flag clicked\nset [ghost v] effect to (100)\nswitch costume to (costume1 v)\ngo to [front v] layer\nwait (1) seconds\nstart sound [Unkown v]\nwait (.4) seconds\nbroadcast (gohost v)\nrepeat (13)\n    next costume\nend\nwait (1) seconds\nrepeat (18)\n    next costume\nend\nwait (2) seconds\nrepeat (15)\n    change [ghost v] effect by (8)\nend\nbroadcast (Game/Animation v)\n\nwhen I receive [gohost v]\nrepeat (15)\n    change [ghost v] effect by (-8)\nend\n\n@Character\n\ndefine Platformer Physics (speed) (friction) (jump height)\nchange [y velocity v] by (-1)\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    change [x velocity v] by (speed)\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    change [x velocity v] by ((0) - (speed))\nend\nset [x velocity v] to ((X Velocity) * (friction))\nchange x by (X Velocity)\nset [slope v] to [0]\nif <touching (level v)?> then\n    repeat until <<not <touching (level v)?>> or <(Slope) = [-8]>>\n        change [slope v] by (-1)\n        change y by (1)\n    end\nend\nif <touching (level v)?> then\n    change y by (Slope)\n    repeat until <not <touching (level v)?>>\n        change x by ((0) - (([abs v] of (X Velocity) ) / (X Velocity)))\n    end\n    set [x velocity v] to [0]\nend\nchange y by (Y Velocity)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        change y by ((([abs v] of (Y Velocity) ) / (Y Velocity)) * (-1))\n    end\n    set [y velocity v] to [0]\nend\nchange y by (-1)\nif <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (level v)?>> then\n    set [y velocity v] to (jump height)\nend\nchange y by (1)\nif <(x position) > [236]> then\n    Next Level\nend\nif <(y position) < [-180]> then\n    Reset\nend\nif <touching (danger v)?> then\n    Reset\nend\nif <touching (danger2 v)?> then\n    Reset\nend\nif <touching (jump v)?> then\n    set [y velocity v] to [18]\nend\n\nwhen flag clicked\ngo to [front v] layer\npoint in direction (90)\nset size to (100) %\nhide\nwait (40) seconds\nshow\nswitch costume to (costume1 v)\ngo [forward v] (88) layers\ngo to x: (-204) y: (-44)\nset rotation style [left-right v]\nset [level v] to [1]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    Platformer Physics [2.] [0.88] [11.8]\nend\n\ndefine Next Level\ngo to x: (-204) y: (-44)\nchange [level v] by (1)\n\ndefine Reset\ngo to x: (-204) y: (-44)\n\ngo to x: (-204) y: (-44)\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume2 v)\n    else\n        if <key (left arrow v) pressed?> then\n            switch costume to (costume3 v)\n        else\n            switch costume to (costume1 v)\n        end\n    end\nend\n\n@Level\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen flag clicked\nhide\nwait (40) seconds\nshow\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    switch costume to (Level)\nend\n\n@ground2\n\n@Fog\n\nwhen flag clicked\nset [ghost v] effect to (50)\ngo to x: (0) y: (0)\nshow\ncreate clone of (_myself_ v)\nforever\n    change x by (-1)\n    if <(x position) = [-475]> then\n        hide\n    end\nend\n\nwhen I start as a clone\nset x to (475)\nforever\n    change x by (-1)\n    if <(x position) = [0]> then\n        create clone of (_myself_ v)\n    end\n    if <(x position) = [-475]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nset [ghost v] effect to (70)\n\n@Decor\n\nwhen flag clicked\nhide\nwait (40) seconds\nshow\ngo to [front v] layer\ngo [forward v] (1) layers\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Danger\n\nwhen flag clicked\nhide\nwait (35) seconds\nshow\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\nend\n\n@Sprite1\n\nwhen flag clicked\nwait (3) seconds\nhide\n\n@Jump\n\nwhen flag clicked\nhide\nwait (40) seconds\nshow\ngo to [front v] layer\ngo [forward v] (1) layers\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\nend\n\n@Danger2\n\ndefine Smooth Glide x: (x) y: (y) speed: (speed)\nrepeat until <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>>\n    change x by (((round (x)) - (round (x position))) / (speed))\n    change y by (((round (y)) - (round (y position))) / (speed))\nend\ngo to x: (x) y: (y)\n\nwhen flag clicked\nhide\nwait (35) seconds\nshow\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    if <(Level) = [12]> then\n        show\n        go to x: (40) y: (0)\n        turn right (5) degrees\n    end\n    if <(Level) = [13]> then\n        point in direction (90)\n        go to x: (0) y: (0)\n        Smooth Glide x: (0) y: (-60) speed: (9)\n        wait (.5) seconds\n        Smooth Glide x: (0) y: (0) speed: (9)\n        wait (.5) seconds\n    end\n    if <(Level) = [16]> then\n        point in direction (90)\n        go to x: (100) y: (0)\n        repeat until <not <(Level) = [16]>>\n            Smooth Glide x: (100) y: (0) speed: (9)\n            wait (.5) seconds\n            Smooth Glide x: (100) y: (80) speed: (9)\n            wait (.5) seconds\n        end\n    end\n    if <(Level) = [17]> then\n        go to x: (-200) y: (50)\n        turn right (5) degrees\n    end\n    if <(Level) = [18]> then\n        turn right (5) degrees\n        go to x: (-70) y: (130)\n    end\nend\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@orb\n\nwhen flag clicked\nset [end v] to [0]\nhide\nwait (1) seconds\ngo to [front v] layer\ngo [backward v] (4) layers\nforever\n    if <(Level) = [20]> then\n        show\n        go to x: (130) y: (40)\n        turn right (1) degrees\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (character v)?> then\n        set [end v] to [1]\n        wait (1.5) seconds\n        hide\n    end\nend\n\n@orb2\n\nwhen flag clicked\nhide\nwait (1) seconds\ngo to [front v] layer\ngo [backward v] (6) layers\nforever\n    if <(Level) = [20]> then\n        show\n        go to x: (130) y: (40)\n        turn right (1) degrees\n    end\nend\n\nwhen flag clicked\nforever\n    if <(end) = [1]> then\n        wait (1.5) seconds\n        hide\n    end\nend\n\n@Flash\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(end) = [1]> then\n        show\n        set [ghost v] effect to (100)\n        repeat (30)\n            change [ghost v] effect by (-4)\n            go to [front v] layer\n        end\n        wait (1) seconds\n        set [level v] to [21]\n        repeat (30)\n            change [ghost v] effect by (4)\n            go to [front v] layer\n        end\n        set [end v] to [0]\n    end\nend\n\n