Plant a tree, save the planet

The Project

My Scratch program is to help people to know how important it is for the environment to plant trees, but have fun at the same time. I was inspired by the tree planting group that I did in the village that I live in where we planted lots of trees to help take carbon out of the atmosphere. I am also part of a club at school called Eco Rangers that me and my friend started. I hope to use this project in the club to teach people about tree planting. My project has three parts: Part 1 is a carbon calculator which asks you how many trees that you will plant this year and will calculate how much carbon it will take out of the atmosphere this year and it will also tells you how many car miles, plane miles and kg of meat that adds up to. I had to research how much carbon a car, plane on average use per mile and beef per kg. Part 2 is facts where you click on a button and a fact appears in the box for 3 seconds. I researched facts on the Internet which also helped with part 1. Part 3 is a game so people can have fun with this Scratch project. The game is where you have to collect all the items needed to plant a tree including a spade, a tree sapling and a tree guard. Your job is to help Frank get around the maze to collect the items and to get to the brown dot where you will plant the tree! I had a problem with the maze and my sprite (Frank) going through the walls of the maze. I worked out that I had to change the number of steps Frank bounced back so that I was the same number as Frank moved forward and that worked. Another problem was that when I put the sapling sprite into the Maze, there was a bug and Frank wasn't able to collect it. I worked out that part of the sapling was the same colour as the edge of the maze which meant that because of the other code it wouldn't allow Frank to collect it. I solved this by moving the position of the sapling so that Frank crashed into a different coloured part of the sapling image. Final problem was with the carbon calculator, the calculations weren't correct. I worked out it was because I multiplied the number instead of dividing it. If I'd had more time, I would add a timer to the maze so that I recorded your time of getting through the maze so that you can try and beat it next time. I first wanted to make the game so that you went around the screen planting trees using the right tools, but I couldn't figure out how to do it and it would have taken too long so I learnt how to make a maze instead which I am pleased with.

Scratch
Community
Environment

About the team

  • United Kingdom

Team members

  • Daniel