*•̩̩͙✩•̩̩͙*CandyLand*•̩̩͙✩•̩̩͙*˚ A Platformer　

Instructions:        *•̩̩͙✩•̩̩͙*CandyLand*•̩̩͙✩•̩̩͙*˚ A Platformer\n\n       PC USERS: Simple: Arrow Keys!  R: Reset! \n      MOBILE USERS: Drag Your Player To Move!\n-------------------------------------------------------------------------\n                               ♡Obstacles♡\nMILK        LAVA          POTIONS       \n

@Stage\n\n@Player\n\nwhen I receive [next level v]\nreset\nReset player variables\n\nwhen flag clicked\nforever\n    if <(x position) = [271]> then\n        broadcast (NEXT LEVEL v)\n        change [level v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (over right v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (over left v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (center v)\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nswitch costume to (center v)\n\nwhen flag clicked\nforever\n    if <<not <key (up arrow v) pressed?>> and <<not <key (right arrow v) pressed?>> and <not >>> then\n        switch costume to (center v)\n    end\nend\n\nwhen [r v] key pressed\nswitch costume to (center v)\ngo to x: (-200) y: (0)\n\ndefine reset\nclear graphic effects\nset size to (70) %\nshow\ngo to x: (-200) y: (0)\npoint in direction (90)\nReset player variables\n\nwhen flag clicked\nset [level v] to [1]\nset size to (100) %\nReset player variables\nreset\nforever\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 v] by (.9)\n    end\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 v] by (-.9)\n    end\n    set [x v v] to ((X v) * (0.9))\n    change x by (X v)\n    if <<touching (level v)?> or <touching (moving platfom v)?>> then\n        change y by (1)\n        if <<touching (level v)?> or <touching (moving platfom v)?>> then\n            change y by (1)\n            if <<touching (level v)?> or <touching (moving platfom v)?>> then\n                change y by (1)\n                if <<touching (level v)?> or <touching (moving platfom v)?>> then\n                    change y by (1)\n                    if <<touching (level v)?> or <touching (moving platfom v)?>> then\n                        change y by (1)\n                        if <<touching (level v)?> or <touching (moving platfom v)?>> then\n                            change x by ((X v) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n                                if <(X v) > [0]> then\n                                    set [x v v] to [-5]\n                                else\n                                    set [x v v] to [5]\n                                end\n                                set [y v v] to [15]\n                            else\n                                set [x v v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v v] by (-1)\n    change y by (Y v)\n    if <<touching (level v)?> or <touching (moving platfom v)?>> then\n        change y by ((Y v) * (-1))\n        set [y v v] to [0]\n    end\n    change y by (-1)\n    if <<touching (level v)?> or <touching (moving platfom v)?>> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n            set [y v v] to [12]\n        end\n    end\n    change y by (1)\n    if <touching (spikes v)?> then\n        reset\n    end\n    if <touching (killer wheel v)?> then\n        reset\n    end\n    if <touching (jump fall v)?> then\n        reset\n    end\n    if <touching (milk-01 v)?> then\n        reset\n    end\n    if <touching (milk-02 v)?> then\n        reset\n    end\n    if <touching (lava v)?> then\n        reset\n    end\n    if <touching (milk-03 v)?> then\n        reset\n    end\n    if <touching (lava-02 v)?> then\n        reset\n    end\n    if <touching (potion v)?> then\n        reset\n    end\n    if <touching (jump pad v)?> then\n        set [y v v] to [23]\n    end\nend\n\n@Level\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [next level v]\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@Moving Platfom\n\nwhen flag clicked\nforever\n    if <(Level) = [4]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    glide (1) secs to x: (49) y: (-5)\n    wait (1) seconds\n    glide (1) secs to x: (-53) y: (-5)\nend\n\n@CLOUD\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nset size to (pick random (50) to (70)) %\nswitch costume to (pick random (1) to (3))\nset [ghost v] effect to (pick random (30) to (45))\nset [cloud side v] to (pick random (1) to (2))\nif <(Cloud side) = [1]> then\n    go to x: (246) y: (pick random (131) to (0))\n    repeat until <(x position) < [-243]>\n        change x by ((0) - (pick random (0.5) to (2)))\n    end\nelse\n    go to x: (-246) y: (pick random (131) to (0))\n    repeat until <(x position) > [243]>\n        change x by (pick random (0.5) to (2))\n    end\nend\ndelete this clone\n\nwhen flag clicked\nhide\nforever\n    wait (pick random (2.5) to (5)) seconds\n    create clone of (_myself_ v)\nend\n\n@Milk-01\n\nwhen flag clicked\nforever\n    if <(Level) = [2]> then\n        show\n    else\n        hide\n    end\nend\n\n@Milk-02\n\nwhen flag clicked\nforever\n    if <(Level) = [4]> then\n        show\n    else\n        hide\n    end\nend\n\ngo to [back v] layer\n\n@Sun\n\n@lava\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nforever\n    hide\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Milk-03\n\nwhen flag clicked\nstart sound [Dance Chill Out v]\n\nwhen flag clicked\nforever\n    if <(Level) = [9]> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite3\n\n@lava-02\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        show\n    else\n        hide\n    end\nend\n\n@Potion\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        show\n    else\n        hide\n    end\nend\n\n@Jump Pad\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        show\n    else\n        hide\n    end\nend\n\n