Forest - a platformer
@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (level)\nend\n\nwhen flag clicked\n\nwhen I receive [play v]\nset volume to (30) %\nforever\n    play sound [Operation Evolution v] until done\nend\n\n@Sprite16\n\nwhen flag clicked\nset [level v] to [1]\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [new level v]\nshow\nnext costume\n\n@Sprite1\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\n\nwhen backdrop switches to [backdrop16 v]\nhide\n\n@Sprite2\n\nwhen flag clicked\nhide\nset rotation style [don't rotate v]\ngo to x: (-206) y: (-139)\n\nwhen [up arrow v] key pressed\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <key (up arrow v) pressed?> then\n        repeat (11)\n            change y by (4)\n        end\n        repeat until <touching (sprite13 v)?>\n            change y by (-4)\n        end\n    end\n    if <touching (sprite1 v)?> then\n        broadcast (new level v)\n    end\nend\n\nwhen I receive [new level v]\ngo to x: (-206) y: (-139)\nchange [level v] by (1)\n\nwhen I receive [play v]\nshow\nforever\n    if <key (right arrow v) pressed?> then\n        change x by (5)\n    end\n    if <key (left arrow v) pressed?> then\n        change x by (-5)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<touching (sprite16 v)?> or <touching (sprite18 v)?>> or <touching (sprite19 v)?>> then\n        go to x: (-206) y: (-139)\n    end\nend\n\nwhen flag clicked\nset [play v] to [0]\nforever\n    if <touching (sprite12 v)?> then\n        change y by (2)\n    end\nend\n\nwhen backdrop switches to [backdrop16 v]\nset [steps v] to [5]\nstop [other scripts in sprite v]\nforever\n    move (steps) steps\n    point in direction (90)\n    if <touching (sprite15 v)?> then\n        set [steps v] to [0]\n        go to x: (-206) y: (-139)\n        hide\n        broadcast (victory v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [play v]\nset [play v] to [1]\n\n@Sprite3\n\nwhen flag clicked\nset rotation style [don't rotate v]\nswitch costume to (costume1 v)\nhide\nforever\n    if <(level) = [8]> then\n        show\n    end\n    if <(level) = [9]> then\n        hide\n    end\nend\n\n@Sprite4\n\nwhen flag clicked\nshow\n\nwhen I receive [play v]\nhide\n\n@Sprite5\n\nwhen flag clicked\nshow\ngo to [front v] layer\n\nwhen I receive [2 v]\nhide\n\n@Sprite6\n\nwhen flag clicked\ngo to x: (-162) y: (-116)\nset rotation style [don't rotate v]\nshow\ngo to [front v] layer\nforever\n    move (1) steps\n    point in direction (90)\n    if <touching (sprite5 v)?> then\n        hide\n        go to x: (-162) y: (-116)\n        stop [this script v]\n    end\nend\n\nwhen I receive [play v]\nhide\n\nwhen I receive [2 v]\nhide\n\n@Sprite7\n\nwhen flag clicked\nhide\n\nwhen I receive [2 v]\nshow\ngo to [front v] layer\n\nwhen I receive [play v]\nhide\n\n@Sprite8\n\nwhen flag clicked\nshow\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\nwait (1) seconds\nrepeat (20)\n    wait (0.1) seconds\n    change [ghost v] effect by (-5)\nend\nwait (1) seconds\nhide\nbroadcast (2 v)\n\nset [ghost v] effect to (100)\n\n@Sprite9\n\nwhen I receive [2 v]\nshow\ngo to [front v] layer\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nhide\n\n@Sprite10\n\nwhen I receive [2 v]\nshow\ngo to [front v] layer\ngo to x: (-84) y: (-110)\nwait (1) seconds\nbroadcast (2.5 v)\nforever\n    move (0.2) steps\n    point in direction (90)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [2.5 v]\nbroadcast (3 v)\n\nwait (0.10) seconds\n\nwhen I receive [play v]\nhide\n\n@Sprite11\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide\n\nset [ghost v] effect to (100)\n\nwhen I receive [3 v]\nshow\nforever\n    go to [front v] layer\nend\n\nwhen I receive [3 v]\nshow\nset [ghost v] effect to (100)\nwait (1) seconds\nrepeat (20)\n    wait (0.1) seconds\n    change [ghost v] effect by (-6)\nend\nwait (1) seconds\nhide\nbroadcast (play v)\n\n@Sprite12\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n@Sprite13\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n@Sprite14\n\nwhen flag clicked\ngo to x: (204) y: (-120)\nhide\n\nwhen flag clicked\nset [keys v] to [0]\nforever\n    repeat (10)\n        change y by (1)\n    end\n    repeat (10)\n        change y by (-1)\n    end\nend\n\nwhen I receive [play v]\nforever\n    if <(level) = [3]> then\n        show\n    end\n    if <<(level) = [3]> and <touching (sprite2 v)?>> then\n        change [keys v] by (1)\n        broadcast (collect v)\n        repeat until <(level) = [6]>\n            hide\n        end\n    end\n    if <(level) = [6]> then\n        show\n    end\n    if <<(level) = [6]> and <touching (sprite2 v)?>> then\n        change [keys v] by (1)\n        broadcast (collect v)\n        repeat until <(level) = [9]>\n            hide\n        end\n    end\n    if <(level) = [9]> then\n        show\n    end\n    if <<(level) = [9]> and <touching (sprite2 v)?>> then\n        change [keys v] by (1)\n        broadcast (collect v)\n        repeat until <(level) = [13]>\n            hide\n        end\n    end\n    if <(level) = [13]> then\n        show\n    end\n    if <<(level) = [13]> and <touching (sprite2 v)?>> then\n        change [keys v] by (1)\n        broadcast (collect v)\n        forever\n            hide\n        end\n    end\nend\n\nwhen I receive [collect v]\nplay sound [Coin v] until done\n\n@Sprite15\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop16 v]\nshow\nforever\n    if <touching (sprite2 v)?> then\n        broadcast (victory v)\n        hide\n    end\nend\n\n@Sprite17\n\nwhen flag clicked\nhide\n\nwhen I receive [victory v]\ngo to [front v] layer\nshow\n\n@Sprite18\n\nwhen flag clicked\nhide\nset [ghost v] effect to (0)\nforever\n    if <(level) = [4]> then\n        show\n        set [ghost v] effect to (100)\n    end\n    if <(level) = [5]> then\n        hide\n        set [ghost v] effect to (0)\n    end\nend\n\n@Sprite19\n\nwhen flag clicked\nhide\nset [ghost v] effect to (0)\nforever\n    if <(level) = [9]> then\n        show\n        set [ghost v] effect to (100)\n    end\n    if <(level) = [10]> then\n        hide\n        set [ghost v] effect to (0)\n    end\n    if <(level) = [12]> then\n        show\n        set [ghost v] effect to (100)\n    end\n    if <(level) = [13]> then\n        hide\n        set [ghost v] effect to (0)\n    end\nend\n\n@Sprite20\n\nwhen flag clicked\nshow\ngo to [front v] layer\nchange [ghost v] effect by (100)\n\n
\nNew project:  https://scratch.mit.edu/projects/295936585/\n\nPress the green flag TWICE! Use arrow keys and do NOT touch lava and spikes! All the characters are in the shadow because is morning.\n#Games #Platformer #Morning #Forest #ForPlay\nPlease add in more studios! (if you want)... I want this game to become popular.\n\nGoals:\n-LOVED BY: @C700 and @Crazybeast999!\n-Proposed to be featured!\n-70+ loves!\n-43+ comments!\n-1100+ views!\n\n*wowi*