Into the Woods | Platformer
@Stage\n\nwhen flag clicked\nforever\n    if <(your time) < (☁ record)> then\n        set [☁ record v] to (your time)\n    end\nend\n\nwhen flag clicked\nset [your time v] to [0]\nrepeat until <(backdrop [number v]) = [9]>\n    set [your time v] to (timer)\nend\n\nwhen flag clicked\nswitch backdrop to (level1 v)\n\nwhen I receive [new level v]\nswitch backdrop to (join [Level] (Level))\n\nwhen flag clicked\nset [level v] to [1]\n\nadd (username) to [passed v]\n\nwhen flag clicked\nforever\n    play sound [Cricket v] until done\nend\n\nwhen flag clicked\nforever\n    play sound [Rain v] until done\nend\n\nwhen flag clicked\nhide variable [your time v]\nhide variable [☁ record v]\n\nwhen flag clicked\nforever\n    if <(backdrop [number v]) = [9]> then\n        show variable [your time v]\n        show variable [☁ record v]\n    end\nend\n\nwhen backdrop switches to [level9 v]\nchange [☁ passed v] by (1)\n\n@Character\n\nwhen flag clicked\ngo to x: (-55) y: (-110)\npoint in direction (90)\nforever\n    change [y v] by (-0.5)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n        point in direction (-90)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n        point in direction (90)\n    end\n    set [x v] to ((x) * (0.6))\n    change x by (x)\n    if <<touching color (#1dff00)?> or <touching color (#b50000)?>> then\n        change y by (1)\n        if <<touching color (#1dff00)?> or <touching color (#b50000)?>> then\n            change y by (1)\n            if <<touching color (#1dff00)?> or <touching color (#b50000)?>> then\n                change y by (1)\n                if <<touching color (#1dff00)?> or <touching color (#b50000)?>> then\n                    change y by (1)\n                    if <<touching color (#1dff00)?> or <touching color (#b50000)?>> then\n                        change y by (1)\n                        if <<touching color (#1dff00)?> or <touching color (#b50000)?>> then\n                            change y by (1)\n                            if <<touching color (#1dff00)?> or <touching color (#b50000)?>> then\n                                change y by (-6)\n                                if <key (up arrow v) pressed?> then\n                                    set [y v] to [5]\n                                    if <(x) > [0]> then\n                                        set [x v] to [-5]\n                                    else\n                                        set [x v] to [5]\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 color (#1dff00)?> or <touching color (#b50000)?>> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<<touching color (#1dff00)?> or <touching color (#b50000)?>> and <key (up arrow v) pressed?>> then\n        set [y v] to [6]\n    end\n    change y by (0.5)\nend\n\nwhen flag clicked\nswitch costume to (right v)\nset [gravity v] to [-1]\nset [speed y v] to [0]\nset [speed x v] to [0]\nset [falling v] to [0]\ngo to x: (-205) y: (101)\nforever\n    if <key (up arrow v) pressed?> then\n        if <(falling) < [3]> then\n            set [speed y v] to [12]\n        end\n    end\n    if <key (left arrow v) pressed?> then\n        change [speed x v] by (-2)\n    end\n    if <key (right arrow v) pressed?> then\n        change [speed x v] by (2)\n    end\n    set [speed x v] to ((speed x) * (0.8))\n    change [speed y v] by (gravity)\n    Move - in steps (([abs v] of (speed x) ) + ([abs v] of (speed y) ))\nend\n\ndefine Move - in steps (steps)\nchange [falling v] by (1)\nrepeat (steps)\n    set [last value v] to (x position)\n    change x by ((speed x) / (steps))\n    if <<touching color (#1dff00)?> or <touching color (#b50000)?>> then\n        set x to (last value)\n        set [speed x v] to [0]\n    end\n    set [last value v] to (y position)\n    change y by ((speed y) / (steps))\n    if <<touching color (#1dff00)?> or <touching color (#b50000)?>> then\n        set y to (last value)\n        if <(speed y) < [0]> then\n            set [falling v] to [0]\n        end\n        set [speed y v] to [0]\n    end\nend\n\ndefine next\nbroadcast (New Level v)\nchange [level v] by (1)\ngo to x: (-205) y: (-88)\n\nwhen flag clicked\nLevel change?\n\ndefine Level change?\nbroadcast (check v)\n\nwhen I receive [check v]\nforever\n    broadcast (done? v)\nend\n\nwhen I receive [done? v]\nif <(x position) > [235]> then\n    next\nend\n\nwhen I receive [death v]\ngo to x: (-205) y: (101)\n\nwhen [right arrow v] key pressed\npoint in direction (90)\n\nwhen [left arrow v] key pressed\npoint in direction (-90)\n\nwhen [right arrow v] key pressed\nrepeat until <not <key (right arrow v) pressed?>>\n    create clone of (trail v)\nend\n\nwhen [left arrow v] key pressed\nrepeat until <not <key (left arrow v) pressed?>>\n    create clone of (trail v)\nend\n\nwhen [up arrow v] key pressed\nrepeat until <not <key (up arrow v) pressed?>>\n    create clone of (trail v)\nend\n\nwhen flag clicked\nforever\n    if <<touching color (#0e7900)?> or <touching color (#0058ff)?>> then\n        broadcast (death v)\n    end\nend\n\n@trail\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\ngo to (character v)\nshow\nset size to (100) %\ngo to [back v] layer\nrepeat (10)\n    change size by (-10)\nend\ndelete this clone\n\n@Thumbnail\n\nwhen [timer v] > (timer)\nhide variable [timer v]\nhide variable [☁ record v]\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\nwhen flag clicked\nforever\n    set [timer v] to (timer)\nend\n\n@Clouds\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (2.5) seconds\nend\n\nwhen I start as a clone\ngo to x: (62) y: (43)\nshow\nglide (3) secs to x: (-331) y: (15)\ndelete this clone\n\n
New platformer: https://scratch.mit.edu/projects/874086027/\nUSE TURBOWRAP: https://turbowarp.org/869081241\nInto the Woods Platformer\nUse ARROW keys\nFor "A Stroll Into The Woods" studio but I don't know if it will be accepted. :| (It got accepted)\n#5 on the "A Stroll through The Woods" Page!