Рет қаралды 249
Hi Friends, Welcome back to the channel "RS Junction". In this video tutorial, we learn how to create bar graph in Scratch Programming.
------------------------------------------STEPS------------------------------------
1. Picking up a backdrop and editing it for drawing x and y axis
2. Creating the sprites
3. Finding the length of one side of a square in the backdrop
On the vertical lines of the backdrop, Create 2 sprites one below the other as if they are located on the vertices of the square
and enable the Y position variable in Motion section. Then subtract them and store in a variable.
This gives us the length of side of one square on the backdrop
4. Formula for Calculating the Target Y position of sprite
Target Y position = (Beginning Y position of the sprite) + (side length of One square * answer / 10)
Ex: Target y pos = -153 + 30 * 50/10 = -153 + 150 = -3
5. Create a loop where we change the Y position of sprite by 1 and Use Pen to stamp the sprite