Save Trees | Platformer | #Games #All #Trending #Popular

Instructions: Save Trees | A Platformer\nWelcome to the Tree World!\nBut... there are no trees?\nCan you go through a dangerous path to  save them?\n\n|CONTROLS|\nWAD or ARROW KEYS to move\n\nAvoid obstacles like Spikes and Lava to Win!\n\n|March 20 2022| Made The Game\n|March 22 2022| Improved Quality\n

@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (Level)\nend\n\n@Player\n\nwhen I start as a clone\nrepeat (7)\n    set [color v] effect to (pick random (1) to (20))\n    switch costume to (player_trail v)\n    change size by (-4)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nset [level v] to [1]\nset [x v] to [0]\nset [y v] to [0]\ngo to [front v] layer\ngo [backward v] (3) layers\nshow\nset size to (45) %\nswitch costume to (player_up v)\ngo to x: (-190) y: (50)\npoint in direction (90)\nforever\n    create clone of (_myself_ v)\n    set rotation style [left-right v]\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        create clone of (_myself_ v)\n        change [x v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        create clone of (_myself_ v)\n        change [x v] by (1)\n    end\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        create clone of (_myself_ v)\n    end\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        create clone of (_myself_ v)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change x by ((X) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                if <(X) > [0]> then\n                                    set [x v] to [-7]\n                                else\n                                    set [x v] to [7]\n                                end\n                                set [y v] to [14]\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [y v] to [14]\n            point in direction ((Y) * (0.5))\n        end\n    end\n    change y by (1)\n    change [y v] by (-1)\n    change y by (Y)\n    if <touching (ground v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    hide variable [x v]\n    if <<(x position) > [230]> and <not <(Level) = [12]>>> then\n        broadcast (next level v)\n        change [level v] by (1)\n        set [y v] to [0]\n        set [x v] to [0]\n        go to x: (-190) y: (0)\n    end\n    if <<touching (spikes v)?> or <<touching (lava v)?> or <(y position) < [-170]>>> then\n        go to x: (-190) y: (-10)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (up arrow v) pressed?> then\n        switch costume to (player_up v)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (player_right v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (player_left v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (w v) pressed?> then\n        switch costume to (player_up v)\n    end\n    if <key (d v) pressed?> then\n        switch costume to (player_right v)\n    end\n    if <key (a v) pressed?> then\n        switch costume to (player_left v)\n    end\nend\n\nwhen I receive [surprise end v]\nhide\n\nwhen flag clicked\nforever\n    set volume to (50) %\n    play sound [Digital Lemonade- Kevin  Macleod v] until done\nend\n\n@ground\n\nwhen flag clicked\nshow\nforever\n    switch costume to (Level)\nend\n\n@Lava\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nforever\n    repeat (8)\n        change y by (0.5)\n    end\n    repeat (8)\n        change y by (-0.5)\n    end\nend\n\n@Spikes\n\nwhen flag clicked\nshow\ngo to [front v] layer\nforever\n    switch costume to (Level)\nend\n\n@Clouds\n\nwhen flag clicked\nhide\nset rotation style [left-right v]\nset x to (280)\nforever\n    create clone of (_myself_ v)\n    wait (pick random (1) to (3.62)) seconds\nend\n\nwhen I start as a clone\nshow\nswitch costume to (pick random (1) to (5))\nset [costume v] to (costume [number v])\nset [ghost v] effect to (pick random (30) to (70))\nset y to (pick random (80) to (180))\nrepeat (140)\n    go to [back v] layer\n    change x by (-4)\n    switch costume to (Costume)\nend\ndelete this clone\n\n@Thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n