Alone - Platformer
@Stage\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [start v]\nset [ghost v] effect to (0)\nswitch backdrop to (backdrop1 v)\nforever\n    play sound [Bowser's Galaxy Generator v] until done\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen flag clicked\nbroadcast (Start v)\n\n@Player\n\ndefine Platform Physics (speed) (friction) (jump height)\nset rotation style [left-right v]\nchange [y vel 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 vel 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 vel v] by ((speed) * (-1))\nend\nset [x vel v] to ((X Vel) * (friction))\nchange x by (X Vel)\nset [slpoe v] to [0]\nif <<<touching (level v)?> or <touching (sprite4 v)?>> or <touching (tb v)?>> then\n    repeat until <<not <<<touching (level v)?> or <touching (sprite4 v)?>> or <touching (tb v)?>>> or <(Slpoe) = [-8]>>\n        change [slpoe v] by (-1)\n        change y by (1)\n    end\nend\nif <<<touching (level v)?> or <touching (sprite4 v)?>> or <touching (tb v)?>> then\n    change y by (Slpoe)\n    repeat until <not <<<touching (level v)?> or <touching (sprite4 v)?>> or <touching (tb v)?>>>\n        change x by ((([abs v] of (X Vel) ) / (X Vel)) * (-1))\n    end\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        set [y vel v] to [11.5]\n        if <(X Vel) > [0]> then\n            set [x vel v] to [-6]\n        else\n            set [x vel v] to [6]\n        end\n    else\n        set [x vel v] to [0]\n    end\nend\nchange y by (Y Vel)\nif <<<touching (level v)?> or <touching (sprite4 v)?>> or <touching (tb v)?>> then\n    repeat until <not <<touching (level v)?> or <touching (tb v)?>>>\n        change y by ((([abs v] of (Y Vel) ) / (Y Vel)) * (-1))\n    end\n    set [y vel 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)?> or <touching (tb v)?>>> then\n    start sound [smw_jump v]\n    set [y vel v] to [13]\nend\nchange y by (1)\n\nwhen I receive [start v]\nshow\nset [level v] to [1]\npoint in direction (90)\nswitch costume to (player v)\nset [x vel v] to [0]\nset [y vel v] to [0]\ngo to x: (-215) y: (-30)\nrepeat until <(costume [number v]) = [2]>\n    Platform Physics [1] [0.9] [11]\nend\nforever\n    Platform Physics [2] [0.9] [22]\nend\n\nwhen I receive [start v]\nforever\n    if <(x position) > [210]> then\n        go to x: (-215) y: (-30)\n        change [level v] by (1)\n        broadcast (Next v)\n    end\nend\n\nif <(Level) = [11]> then\n    hide\nend\n\nwhen I receive [start v]\nforever\n    if <<key (r v) pressed?> or <<touching (spikes v)?> or <touching (lava v)?>>> then\n        set [x vel v] to [0]\n        set [y vel v] to [0]\n        go to x: (-215) y: (-30)\n        if <(Level) = [17]> then\n            go to x: (-215) y: (-120)\n        end\n    end\n    if <[-179] > (y position)> then\n        go to x: (-215) y: (-30)\n        if <(Level) = [17]> then\n            go to x: (-215) y: (-120)\n        end\n    end\n    if <touching (level v)?> then\n        set [x vel v] to [0]\n        set [y vel v] to [0]\n        go to x: (-215) y: (-30)\n        if <(Level) = [17]> then\n            go to x: (-215) y: (-120)\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nif <(Level) = <<touching (level v)?> or <touching (sprite4 v)?>>> then\n    hide\nend\n\nwhen I receive [start v]\nforever\n    if <<touching (mouse-pointer v)?> and <<(Level) = [3]> or <(Level) = [13]>>> then\n        change x by ((([x position v] of [sprite4 v]) - (x position)) / (4))\n    end\nend\n\nwhen flag clicked\n\n@level\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\ngo to [front v] layer\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [start v]\nshow\nshow\nset [brightness v] effect to (0)\n\nset [dark v] to [0]\nwait (2) seconds\nforever\n    show\n    go to [front v] layer\n    repeat (10)\n        set [dark v] to [1]\n        change [brightness v] effect by (-10)\n    end\n    wait (5) seconds\n    repeat (10)\n        change [brightness v] effect by (10)\n    end\n    set [brightness v] effect to (0)\n    wait (1) seconds\n    set [dark v] to [0]\nend\n\nwhen flag clicked\n\n@spikes\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [start v]\nshow\nshow\nset [brightness v] effect to (0)\n\nwait (2) seconds\nforever\n    go to [back v] layer\n    repeat (10)\n        change [brightness v] effect by (-10)\n    end\n    wait (5) seconds\n    repeat (10)\n        change [brightness v] effect by (10)\n    end\n    set [brightness v] effect to (0)\n    wait (1) seconds\nend\n\nwhen flag clicked\n\n@Thumbnail\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\nwhen [space v] key pressed\n\n@TB\n\nwhen flag clicked\nhide\n\ngo to x: (-2) y: (3)\nshow\nshow\ngo to [front v] layer\n\nwhen [space v] key pressed\n\n@Sprite3\n\nwhen flag clicked\nshow\nforever\n    go to (player v)\n    go to [back v] layer\nend\n\nwhen [space v] key pressed\n\n@Sprite4\n\nwhen flag clicked\ngo to x: (0) y: (-130)\nforever\n    glide (1) secs to x: (90) y: (-130)\n    glide (1) secs to x: (-80) y: (-130)\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [3]> or <(Level) = [13]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen [space v] key pressed\n\n
Mac & Cheese - A Platformer\n@chill_coder\n=========================================\n- Arrow keys or WASD to move\n- Avoid the spikes\n- Use the trampolines to jump higher\n- Please ❤️ and ⭐ this project if you'd enjoyed this project :)\n========================================= 