In this blog, we will create an animation for hoisting the flag on the Red Fort and when the flag will be reached to the top this animation will start a national anthem.
This Project is made and written by Sanchit Chirkute of Grade 3 From The Kalyani School, Pune. For creating this animation we will write the code on scratch. You can click on the below green flag icon to see the preview and read the complete blog to make your own.
We will make this animation by dividing the task into the two-part:
Stage Decoration: First we'll decorate the stage by adding the required sprite and by changing the backdrop
Coding: And after decorating the stage we will write the code to make the animation by connecting the blocks to each other.
Step:1 Add the flag Sprite
Step:2 Add the patriot sprite
Step:3 And now paint or design your own red color small sprite and we are creating this red color sprite for detecting the flag that it reached the desired position or not. See the below image for more clarification.
Step:1 Write the code for the patriot sprite by dragging the blocks on the Script Area. You can refer to the below image for more clarification.
Step:2 Now, write the code for the flag sprite by dragging the blocks on the Script Area. You can refer to the below image for more clarification.
Note Keep the red color strip sprite above the flag. The flag should be placed about the y of -120 and x of 77. Get national anthem and background and patriot from google, and flag costumes you will have to draw it from your own.
For more you can refer to the below 👇 link for more help or to remix my project, Thanks.
And if you're remixing my project, don't forget to add your project link in the below comment.
Still if you're facing any problem during making the project then you can ask your questions in the comment Box.
Made and Written By:
The Kalyani School, Pune.