Nature (Platformer)
@Stage\n\nwhen flag clicked\nshow\nswitch costume to (backdrop2 v)\nset [brightness v] effect to (-100)\nwait (0.5) seconds\nrepeat (100)\n    change [brightness v] effect by (1)\nend\nwait (0.5) seconds\nrepeat (100)\n    change [brightness v] effect by (-1)\nend\nwait (1) seconds\nswitch costume to (backdrop1 v)\nrepeat (100)\n    change [brightness v] effect by (1)\nend\nwait (0.5) seconds\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\nswitch backdrop to (backdrop3 v)\nstop [this script v]\n\nwhen backdrop switches to [backdrop3 v]\nset [ghost v] effect to (0)\nset [brightness v] effect to (0)\nstop [other scripts in sprite v]\nrepeat until <(backdrop [number v]) = [29]>\n    play sound [bensound-adventure v] until done\nend\n\nwhen backdrop switches to [backdrop29 v]\nstop all sounds\nforever\n    play sound [bensound-inspire v] until done\nend\n\nwhen backdrop switches to [backdrop28 v]\nwait (3) seconds\nrepeat (100)\n    change [brightness v] effect by (1)\nend\nswitch backdrop to (backdrop29 v)\nrepeat (100)\n    change [brightness v] effect by (-1)\nend\n\nwhen backdrop switches to [backdrop3 v]\nrepeat <(backdrop [number v]) = [29]>\n    play sound [bensound-adventure v] until done\nend\n\n@Player\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen [right arrow v] key pressed\nswitch costume to (costume1 v)\n\nwhen [left arrow v] key pressed\nswitch costume to (costume2 v)\n\nwhen backdrop switches to [backdrop3 v]\nshow\ngo to x: (-215) y: (-70)\nhide variable [x v]\nhide variable [y v]\nset [x v] to [0]\nset [y v] to [0]\nshow\ngo to x: (-215) y: (-70)\nforever\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <<touching color (#04c939)?> or <<touching color (#03a22e)?> or <touching color (#313131)?>>> then\n        change y by (1)\n        if <<touching color (#04c939)?> or <<touching color (#03a22e)?> or <touching color (#313131)?>>> then\n            change y by (1)\n            if <<touching color (#04c939)?> or <<touching color (#03a22e)?> or <touching color (#313131)?>>> then\n                change y by (1)\n                if <<touching color (#04c939)?> or <<touching color (#03a22e)?> or <touching color (#313131)?>>> then\n                    change y by (1)\n                    if <<touching color (#04c939)?> or <<touching color (#03a22e)?> or <touching color (#313131)?>>> then\n                        change x by ((X) * (-1))\n                        change y by (-4)\n                        if <key (up arrow v) pressed?> then\n                            if <(X) > [0]> then\n                                set [x v] to [-5]\n                            else\n                                set [x v] to [5]\n                            end\n                            set [y v] to [10]\n                        else\n                            set [y v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (Y)\n    if <<touching color (#04c939)?> or <<touching color (#03a22e)?> or <touching color (#313131)?>>> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<touching color (#04c939)?> or <<touching color (#03a22e)?> or <touching color (#313131)?>>> then\n        if <key (up arrow v) pressed?> then\n            change [y v] by (15)\n        end\n    end\n    change y by (1)\n    if <<touching color (#ff4f00)?> or <touching color (#404040)?>> then\n        go to x: (-129) y: (-70)\n    end\n    if <(x position) > [325]> then\n        switch backdrop to (next backdrop v)\n        go to x: (-215) y: (-70)\n    end\n    if <(y position) < [-248]> then\n        go to x: (-215) y: (-70)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop4 v]\ngo to x: (-132) y: (-38)\n\nwhen backdrop switches to [backdrop29 v]\nhide\n\nwhen backdrop switches to [backdrop28 v]\nwait (4) seconds\nhide\n\nwhen flag clicked\nset drag mode [not draggable v]\n\n@Cave Entrance\n\nwhen backdrop switches to [backdrop17 v]\nswitch costume to (costume1 v)\ngo to [front v] layer\nshow\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop18 v]\nhide\ngo to [back v] layer\n\nwhen backdrop switches to [backdrop27 v]\nswitch costume to (costume2 v)\nshow\ngo to [front v] layer\n\nwhen backdrop switches to [backdrop28 v]\nhide\ngo to [back v] layer\n\n@Family\n\nwhen flag clicked\nhide\ngo to x: (21) y: (29)\n\nwhen backdrop switches to [backdrop28 v]\nshow\n\nwhen backdrop switches to [backdrop29 v]\nhide\n\nwhen backdrop switches to [backdrop28 v]\nwait (3) seconds\nrepeat (100)\n    change [brightness v] effect by (1)\nend\nswitch backdrop to (backdrop29 v)\nrepeat (100)\n    change [brightness v] effect by (-1)\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nshow\n\n@Sprite2\n\nwhen flag clicked\nshow\n\nwhen this sprite clicked\nswitch backdrop to (backdrop3 v)\nhide\n\nwhen backdrop switches to [backdrop3 v]\nhide\n\n