![]() The forever loop will endlessly execute the ‘go to’ block, which makes the beetle stick to my mouse pointer. Under it add one ‘forever’ Control bock, and inside it place one ‘go to mouse-pointer’ Motion block. Click on it, and add one ”when green flag clicked” event block inside the scripts area. The beetle sprite will be replacing my mouse pointer, so, wherever I move the mouse pointer, the beetle will follow. This block will keep switching the mouse sprites costumes repeatedly. To make the mouse appear lively, add one ‘next costume’ block from the Looks category inside the ‘repeat until’ loop block. Add it in the condition window, and in the drop-down menu choose Beetle. This script will be repeated until the mouse will touch the Beetle, and to set such a condition use the ‘touching’ block from the Sensing category. ![]() Add one ‘move 10 steps’ and one ‘point towards mouse-pointer’ block from the Motion category. Now I will set the script that this loop block will keep repeating until a certain condition will be met. Next go to the Control category and add the ‘repeat until’ condition loop block. This block will make the mouse sprite start from this point on the stage. The coordinates for the x and y axis will be filled in automatically. Position the mouse at the left bottom corner, and go to the Motion category. Start by adding one ‘when green flag clicked’ Event block. Also, shrink the size of the beetle by using the shrink tool that can be found on the menu and tool belt at the top.Ģ5% OFF from online course in Scratch (Recommended): I will write a script for the the mouse sprite to chase the beetle wherever it goes. Next go to the Scratch sprite library and add the mouse 1 sprite, and add the Beetle sprite too. ![]() First set a blue sky 2 backdrop from the Scratch library. It is a step by step on how to make a pretty cool mouse-beetle chasing game.Start by opening the Scratch editor and delete the main cat sprite. In this Scratch tutorial I will explain how to make a game on Scratch.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |