Undergrowth- A Mobile Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (costume3 v)\n\n@Player\n\nwhen I receive [fin v]\nhide\n\nstop [all v]\n\nswitch backdrop to (next backdrop v)\n\nchange y by (y)\n\nwhen flag clicked\nset [fails v] to [0]\n\nwhen flag clicked\ngo to x: (-214) y: (115)\nswitch backdrop to (backdrop2 v)\nswitch costume to (costume3 v)\nshow\nset [level v] to [0]\ngo to x: (-177) y: (12)\nhide variable [y v]\nhide variable [x v]\nset [y v] to [0]\nset [x v] to [0]\nforever\n    change [y v] by (-1)\n    if <<key (left arrow v) pressed?> or <<<mouse down?> and <(mouse x) < (x position)>> or <key (a v) pressed?>>> then\n        change [x v] by (-1)\n        switch costume to (costume4 v)\n    end\n    if <<key (right arrow v) pressed?> or <<<mouse down?> and <(mouse x) > (x position)>> or <key (d v) pressed?>>> then\n        change [x v] by (1)\n        switch costume to (costume2 v)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (1)\n    end\n    if <touching (platform v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<key (up arrow v) pressed?> or <<<mouse down?> and <(mouse y) > (y position)>> or <key (w v) pressed?>>> 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 (platform 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 <<<mouse down?> and <(mouse y) > (y position)>> or <key (w v) pressed?>>> and <touching (platform v)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <<touching (sprite3 v)?> or <touching (water  v)?>> then\n        change [fails v] by (1)\n        go to x: (-177) y: (12)\n    end\n    if <(x position) > [223]> then\n        change [level v] by (1)\n        go to x: (-217) y: (-13)\n    end\n    if <(y position) < [-159]> then\n        go to x: (-217) y: (-13)\n    end\nend\n\nwhen I receive [go v]\n\nif <touching color (#000000)?> then\n    set [y v] to [20]\nend\n\nforever\n    show\n    go to [front v] layer\n    forever\n        if <touching (and v)?> then\n            repeat (100)\n                change y by (1)\n            end\n        end\n    end\nend\n\nchange [level v] by (1)\n\nwhen flag clicked\nforever\n\ngo to x: (0) y: (0)\n\nrepeat (10)\n    change y by (-1)\nend\nrepeat (10)\n    change y by (1)\nend\n\nhide\n\nwhen [r v] key pressed\ngo to x: (-177) y: (12)\n\n@Platform\n\nwhen flag clicked\nset [level v] to [0]\nswitch costume to (level 1 v)\nshow\ngo to x: (0) y: (0)\nforever\n    if <(level) = [1]> then\n        switch costume to (level 2 v)\n    end\n    if <(level) = [2]> then\n        switch costume to (level 3 v)\n    end\n    if <(level) = [3]> then\n        switch costume to (level 4 v)\n    end\n    if <(level) = [4]> then\n        switch costume to (level 5 v)\n    end\n    if <(level) = [5]> then\n        switch costume to (level 6 v)\n    end\n    if <(level) = [6]> then\n        switch costume to (level 7 v)\n    end\n    if <(level) = [7]> then\n        switch costume to (level 9 v)\n    end\n    if <(level) = [8]> then\n        switch costume to (level 8 v)\n    end\n    if <(level) = [9]> then\n        switch costume to (level 10 v)\n    end\n    if <(level) = [10]> then\n        switch costume to (level 11 v)\n    end\n    if <(level) = [11]> then\n        switch costume to (level 13 v)\n    end\n    if <(level) = [12]> then\n        switch costume to (level 12 v)\n    end\n    if <(level) = [13]> then\n        switch costume to (level 14 v)\n    end\nend\n\n@Water \n\nwhen flag clicked\ngo to x: (0) y: (0)\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [back v] layer\nforever\n    repeat (10)\n        change y by (1)\n    end\n    repeat (10)\n        change y by (-1)\n    end\nend\n\nchange y by (10)\n\n@Sprite2\n\ngo to [back v] layer\n\nwhen flag clicked\nset [level v] to [0]\nswitch costume to (costume8 v)\nshow\ngo to x: (0) y: (0)\nforever\n    if <(level) = [1]> then\n        switch costume to (costume2 v)\n    end\n    if <(level) = [2]> then\n        switch costume to (costume3 v)\n    end\n    if <(level) = [3]> then\n        switch costume to (costume4 v)\n    end\n    if <(level) = [4]> then\n        switch costume to (costume5 v)\n    end\n    if <(level) = [5]> then\n        switch costume to (costume6 v)\n    end\n    if <(level) = [6]> then\n        switch costume to (costume7 v)\n    end\n    if <(level) = [7]> then\n        switch costume to (costume9 v)\n    end\n    if <(level) = [8]> then\n        switch costume to (costume10 v)\n    end\n    if <(level) = [9]> then\n        switch costume to (costume11 v)\n    end\n    if <(level) = [10]> then\n        switch costume to (costume12 v)\n    end\n    if <(level) = [11]> then\n        switch costume to (costume13 v)\n    end\n    if <(level) = [12]> then\n        switch costume to (costume14 v)\n    end\n    if <(level) = [13]> then\n        switch costume to (costume15 v)\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\nset [level v] to [0]\nswitch costume to (costume1 v)\nshow\ngo to x: (0) y: (0)\nforever\n    if <(level) = [1]> then\n        switch costume to (costume5 v)\n    end\n    if <(level) = [2]> then\n        switch costume to (costume2 v)\n    end\n    if <(level) = [3]> then\n        switch costume to (costume3 v)\n    end\n    if <(level) = [4]> then\n        switch costume to (costume4 v)\n    end\n    if <(level) = [5]> then\n        switch costume to (costume6 v)\n    end\n    if <(level) = [6]> then\n        switch costume to (costume7 v)\n    end\n    if <(level) = [7]> then\n        switch costume to (costume8 v)\n    end\n    if <(level) = [8]> then\n        switch costume to (costume9 v)\n    end\n    if <(level) = [9]> then\n        switch costume to (costume10 v)\n    end\n    if <(level) = [10]> then\n        switch costume to (costume11 v)\n    end\n    if <(level) = [11]> then\n        switch costume to (costume12 v)\n    end\n    if <(level) = [12]> then\n        switch costume to (costume14 v)\n    end\nend\n\n@Sprite4\n\nwhen flag clicked\nshow\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n
Undergrowth-A Mobile Platformer \nby @TheFlamingArrow34\n---------------------------Instructions-------------------------------\n\nUse Arrow keys, WASD or Mobile Controls to move\nAvoid spikes\nDon't fall in water\nGet to the other side to move on\nR to restart