adventure / platformer #Games #All
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nforever\n    play sound [bensound-summer v] until done\nend\n\n@player\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\ngo to x: (-219) y: (183)\nset [y v] to [0]\nset [x v] to [0]\nforever\n    create clone of (_myself_ v)\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 <(x position) > [240]> then\n        broadcast (next level v)\n    end\n    if <touching (spikes v)?> then\n        repeat (10)\n            change [ghost v] effect by (25)\n        end\n        go to x: (-219) y: (183)\n        set [ghost v] effect to (0)\n    end\n    if <touching (bouncy v)?> then\n        set [y v] to [30]\n    end\nend\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-2)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [next level v]\ngo to x: (-219) y: (183)\n\n@Level\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nif <not <(costume [number v]) = [8]>> then\n    next costume\n    next backdrop\nend\n\n@spikes\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\ngo to [back v] layer\n\nwhen I receive [next level v]\nif <not <(costume [number v]) = [8]>> then\n    next costume\nend\n\n@backstuff\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nset [ghost v] effect to (100)\nset size to (pick random (60) to (0)) %\nset [ghost v] effect to (pick random (65) to (112))\ngo to x: (600) y: (pick random (-167.01) to (167))\nglide (pick random (6) to (1)) secs to x: (-300) y: (pick random (-167.01) to (167))\nrepeat (20)\n    change [ghost v] effect by (20)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    hide\n    create clone of (_myself_ v)\nend\n\n@Bouncy\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nif <not <(costume [number v]) = [8]>> then\n    next costume\nend\n\n@THUMBNAIL \n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n
100% possible \nArrow keys, WAS and mobile and follow @aswed-\nmy first platformer!\n-avoid spikes (gray)\n-win!\n-bouncy makes you go high (orange)\n----------------please leave a heart and star!-----------------\nplease follow me!--------------------------------------------------