Spoon || A Platformer
@Stage\n\nwhen I receive [begin v]\nswitch backdrop to (backdrop2 v)\n\nwhen flag clicked\nswitch backdrop to (backdrop3 v)\n\n@Spoon\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [setip v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1-1 v)\n    switch backdrop to (1 v)\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [0] y: [360]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [next level v]\nnext costume\nif <(costume [name v]) = [costume12]> then\n\nwhen flag clicked\nforever\n    if <(costume [name v]) = [costume13]> then\n        broadcast (hide sprites v)\n    end\nend\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\ngo to [front v] layer\ngo to x: (0) y: (0)\n\n@game\n\ndefine Physics\ngo [forward v] (1000000) layers\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n    point in direction (90)\n    change [xmovement v] by (2)\nelse\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        point in direction (-90)\n        change [xmovement v] by (-2)\n    end\nend\nset [xmovement v] to ((Xmovement) * ((0.78) - (Friction)))\nchange x by (Xmovement)\nchange [yv v] by (-1.2)\nif <touching color (#969696)?> then\n    change y by (1)\nend\nif <touching color (#969696)?> then\n    change y by (1)\nend\nif <touching color (#969696)?> then\n    change y by (1)\nend\nif <touching color (#969696)?> then\n    change y by (1)\nend\nif <touching color (#969696)?> then\n    change x by ((Xmovement) * (-1))\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <mouse down?>> then\n        set [yv v] to [15]\n        if <(Xmovement) > [0]> then\n            set [xmovement v] to [-7]\n        else\n            set [xmovement v] to [7]\n        end\n    else\n        set [xmovement v] to [0]\n    end\nend\nchange y by (Yv)\nif <touching color (#969696)?> then\n    change y by ((Yv) - ((Yv) * (2)))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <(x position) > [220]> then\n    broadcast (next level v)\n    go to x: (-209) y: (-76)\nend\nif <touching color (#ffee00)?> then\n    go to x: (-207) y: (-107)\nend\nif <touching (favorite v)?> then\n    set [yv v] to [26]\nend\n\nwhen flag clicked\nset [level v] to [1]\nset [ghost v] effect to (0)\nshow\ngo to [front v] layer\ngo [forward v] (1000000) layers\npoint in direction (90)\ngo to x: (-207) y: (-107)\nforever\n    Physics\nend\n\nwhen flag clicked\nforever\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <mouse down?>> then\n        set [yv v] to [17]\n    end\n    if <(Yv) > [7]> then\n        repeat until <(Yv) = [0]>\n            change y by (-1)\n        end\n    end\nend\n\nwhen I receive [restart v]\ngo to x: (-207) y: (-107)\n\nwhen I receive [left v]\npoint in direction (-90)\nrepeat (2)\n    change [xmovement v] by (-2)\nend\n\nwhen I receive [right v]\npoint in direction (90)\nrepeat (2)\n    change [xmovement v] by (2)\nend\n\nwhen I receive [up v]\nset [yv v] to [17]\nforever\n    if <(Yv) > [7]> then\n        repeat until <(Yv) = [0]>\n            change y by (-1)\n        end\n    end\nend\n\nwhen flag clicked\nif <(level) = [6]> then\n    go to x: (-219) y: (161)\nend\n\nwhen flag clicked\nforever\n    wait (.0001) seconds\n    next costume\nend\n\nwhen flag clicked\nplay sound [City Lights \(1\) v] until done\n\n@TB\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n
Hello! Here is another platformer that I made. It's called Spoon! Who doesn't love spoons? I know I shared this before and then unshared it. Now I would like to share it with y'all again! Hope y'all like this! :)\n\nHow to play\nUse arrows keys\nAvoid yellow triangles\n