The First Triangular Platformer

Instructions: Just like any other platformer. Use the arrow keys or WASD to move, and this is also mobile, so YAY! Your goal is to help this little spike become the first triangle to ever be a good guy in a platformer!\n~ALL LEVELS ARE POSSIBLE~\n-July 2, 2019\nHi guys! Thanks so much for your support! I do have a question though. Would you like to see an update to the game which has a llama? Please reply where you want it. Thanks! I will add a llama if we get 15 stars and 20 hearts. I would very much appreciate it!\n-July 3, 2019\nThat was quicker than anticipated. Well, enjoy your llama, courtesy of my sister, who wanted to make a llama game, and ended up with a psycho looking cat in a llama costume with a glued-on tail. You can see him on level 16.\n-July 7, 2019\nYAYYYYY! We hit 1655 views, 38 likes, and 31 stars! Thanks SO much for all you support!

@Stage\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    switch backdrop to (Level)\nend\n\n@Player\n\ndefine Place Player: (x) (y) Set Size To: (size)\ngo to x: (x) y: (y)\nset size to (size) %\n\nwhen flag clicked\nset [level v] to [1]\nshow\nPlace Player: [-173] [-122] Set Size To: [40]\nhide variable [y v]\nhide variable [x v]\nset [y v] to [0]\nset [x v] to [0]\nforever\n    Gravity, Platform Detection, Physics....\nend\n\ndefine Gravity, Platform Detection, Physics....\nforever\n    change [y v] by (-1)\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n    end\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > [0]>>> then\n            set [y v] to [17]\n            if <(x) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (level v)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>> and <touching (level v)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <<<touching (obstacles v)?> or <(y position) < [-175]>> or <key (r v) pressed?>> then\n        Place Player: [-173] [-122] Set Size To: [40]\n    end\n    if <(x position) > [230]> then\n        change [level v] by (1)\n        Place Player: [-173] [-122] Set Size To: [40]\n    end\n    if <touching color (#fff27b)?> then\n        set [y v] to [20]\n    end\nend\n\n@Level\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@Obstacles\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\n@TN\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [16 v]\nshow\n\nwhen backdrop switches to [17 v]\nhide\n\n