Drag You Down - A Mobile Friendly Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nrepeat until <(Level) = [11]>\n    if <(Level) = [10]> then\n        switch backdrop to (backdrop2 v)\n    end\nend\n\nwhen flag clicked\nrepeat until <(Level) = [12]>\n    if <(Level) = [11]> then\n        switch backdrop to (backdrop3 v)\n    end\nend\n\nwhen flag clicked\nrepeat until <(Level) = [13]>\n    if <(Level) = [12]> then\n        switch backdrop to (backdrop4 v)\n    end\nend\n\nwhen flag clicked\nrepeat until <(Level) = [16]>\n    if <(Level) = [13]> then\n        switch backdrop to (backdrop5 v)\n    end\nend\n\nwhen flag clicked\nrepeat until <(Level) = [17]>\n    if <(Level) = [16]> then\n        switch backdrop to (backdrop6 v)\n    end\nend\n\nwhen flag clicked\nrepeat until <(Level) = [18]>\n    if <(Level) = [17]> then\n        switch backdrop to (backdrop7 v)\n    end\nend\n\nwhen flag clicked\nrepeat until <(Level) = [19]>\n    if <(Level) = [18]> then\n        switch backdrop to (backdrop8 v)\n    end\nend\n\nwhen flag clicked\nrepeat until <(Level) = [20]>\n    if <(Level) = [19]> then\n        switch backdrop to (backdrop1 v)\n    end\nend\n\n@Player\n\nwhen flag clicked\ngo to [front v] layer\nset rotation style [left-right v]\ngo to x: (-190) y: (-27)\nforever\n    change [y v] by (-0.5)\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n        point in direction (-90)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (1)\n        point in direction (90)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (levels v)?> then\n        change y by (1)\n        if <touching (levels v)?> then\n            change y by (1)\n            if <touching (levels v)?> then\n                change y by (1)\n                if <touching (levels v)?> then\n                    change y by (1)\n                    if <touching (levels v)?> then\n                        change y by (1)\n                        if <touching (levels v)?> then\n                            change y by (1)\n                            if <touching (levels v)?> then\n                                change y by (-6)\n                                if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>>> then\n                                    set [y v] to [10]\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                else\n                                    change x by ((x) * (-1))\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching (levels v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching (levels v)?> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>>>> then\n        set [y v] to [10]\n    end\n    if <<touching (bouncer v)?> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <((mouse y) - (y position)) > [50]>>>>> then\n        set [y v] to [15]\n    end\n    change y by (0.5)\nend\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    if <(x position) > [235]> then\n        broadcast (Next  v)\n        go to x: (-190) y: (-27)\n        change [level v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [bensound-elevate v] until done\nend\n\nwhen flag clicked\nforever\n    if <touching (spikea v)?> then\n        go to x: (-240) y: (-27)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (x v) pressed?> then\n        broadcast (Next  v)\n        change [level v] by (1)\n        wait (.5) seconds\n    end\nend\n\n@Levels\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [next  v]\nnext costume\n\n@Cloud 1\n\nwhen flag clicked\ngo to [back v] layer\nhide\nwait (1) seconds\nshow\nforever\n    go to x: (-200) y: (pick random (-123) to (123))\n    glide (pick random (4) to (6)) secs to x: (390) y: (y position)\nend\n\ngo to (random position v)\n\nwhen flag clicked\nforever\n    if <(Level) = [12]> then\n        hide\n    end\nend\n\n@Cloud 2\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    go to x: (-200) y: (pick random (-123) to (123))\n    glide (pick random (4) to (6)) secs to x: (390) y: (y position)\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [12]> then\n        hide\n    end\nend\n\n@Narration\n\nwhen flag clicked\ngo to [front v] layer\nswitch costume to (drag you down v)\ngo to x: (0) y: (0)\n\nwhen I receive [next  v]\nnext costume\n\n@Spikea\n\nwhen flag clicked\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nforever\n    if <(Level) = [5]> then\n        show\n        broadcast (New Spikes v)\n    end\nend\n\nwhen I receive [new spikes v]\nswitch costume to (costume1 v)\n\nwhen I receive [next  v]\nnext costume\n\n@Bouncer\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nforever\n    if <(Level) = [7]> then\n        show\n    else\n        if <(Level) = [8]> then\n            switch costume to (costume2 v)\n            show\n        else\n            hide\n        end\n    end\nend\n\n\n\nwhen I receive [next  v]\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nrepeat until <(Level) = [17]>\n    if <(Level) = [13]> then\n        show\n        go [backward v] (2) layers\n    end\nend\n\nwhen flag clicked\nforever\n    go to (player v)\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [17]> then\n        hide\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\nend\n\n
This a game that was inspired by some rude comments I got on some of my projects. Instead of dragging me down and making me feel sad those comments empowered me to make this! Enjoy!\n-Arrow Keys\n-Avoid Spikes\n-Don't Give Up!\n-Press x to skip