My Platformer
@Stage\n\n@Platformer head\n\nwhen I receive [go right  v]\nrepeat until <key (right arrow v) pressed?>\n    if <key (left arrow v) pressed?> then\n        turn left (10) degrees\n    end\nend\nbroadcast (go left v)\n\nwhen I receive [go left v]\nrepeat until <key (left arrow v) pressed?>\n    if <key (right arrow v) pressed?> then\n        turn right (10) degrees\n    end\nend\nbroadcast (go right  v)\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nswitch costume to (costume2 v)\nshow\ngo to x: (-235) y: (-111)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    if <key (left arrow v) pressed?> then\n        switch costume to (base intro2 v)\n        change [x v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (base intro v)\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#000008)?> then\n        change y by (1)\n    end\n    if <touching color (#000008)?> then\n        change y by (1)\n    end\n    if <touching color (#000008)?> then\n        change y by (1)\n    end\n    if <touching color (#000008)?> then\n        change y by (1)\n    end\n    if <touching color (#000008)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <key (up arrow v) pressed?> then\n            set [y v] to [15]\n            if <([abs v] of (x) ) = (x)> 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 color (#000008)?> 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?> and <touching color (#000008)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        go to x: (-227) y: (41)\n        change [death count v] by (1)\n    end\n    if <(x position) > [222]> then\n        next backdrop\n        go to x: (-235) y: (-111)\n    end\nend\n\nwhen flag clicked\npoint in direction (90)\n\nwhen flag clicked\nbroadcast (go right  v)\n\nchange size by (-10)\n\nchange size by (10)\n\nwhen flag clicked\nforever\n    if <touching color (#009933)?> then\n        next backdrop\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#003fff)?> then\n        broadcast (secret v)\n    end\nend\n\nnext backdrop\n\nhide\n\nwhen flag clicked\nforever\n    play sound [TheFatRat_-_Xenogenesis_ v] until done\nend\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\ngo to [front v] layer\n\nshow\n\nshow\nhide\n\nset [ghost v] effect to (-100)\n\n@Sprite2\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [secret v]\nstop all sounds\nshow\n\n
This is my First attempt at a platformer \n\nPlz dont hate\n\nRight arrow Key to go forward Left backwards up arrow = Jump \n\nUse the hair to Jump farther\n\n\n