![]() ![]() Let's go to events and drag out broadcast messages one by one. Now we're going to be creating three messages. ![]() Video Games Tutorials and News - How To Make A Clicker Game In Scratch. ![]() So when the green flag is clicked, we need to set the gravity to zero and let's drag out a forever loop. I'm also going to be deleting this variable since we won't need it. Let's go to our player and let's make a variable called y. Now we need the player to have some gravity. Let's click on this script, and you'll see our truck is now moving smoothly towards the left side. Let's go to our control category and drag out repeat until and we're going to be repeating until our exposition is less than 300, which is all the way on the left side of the screen.Īnd then, after we move to the left side, let's delete this clone, and then we actually need to change our x by a negative value. Let's make him face backwards by using -90, and then we also need to set the rotation style to left and right.īy clicking on this script, you'll see our truck is facing now towards the left, and now we also need the truck to move towards the left. Let's drag out point and direction, so 90 is facing to the right. So when I start as a clone then show, and let's also make the truck move from the right side of the screen to the left, so let's go to motion and let's make sure our truck is first facing towards the left. We also need to hide the default sprites, and when we start as a clone, we need to show them. one easy way to do this let's go to control, drag out forever, let's wait two seconds, and then let's create a corner of ourselves. Now when we run the scripts, our truck should be on the ground. In this case, it's-73 and let's put it inside of here, so -73. So when we click on this, our truck should go to the right side, and we actually need our truck to be on the ground, so let's drag the truck to the center of the screen and make sure that the tires are touching the ground perfectly like that, and let's copy the y position. Let's drag this out when the green flag clicks, go to x 200 and y minus 50. We also need to position the truck on the screen. We'll probably need to make them make the truck a little bit smaller, so let's set the size to 70. And here we go, so you can see it has multiple costumes, and that's exactly what we need, so let's click on it. They don't have a subway, but they do have a truck, so let's look for a truck. Scratch actually has some default sprites. There's another sprite that we need to add, and that's Subway. So when we click on that, our cat should go right to this position, and we're going to be adding gravity later on, so he falls onto the ground. Video Games Tutorials and News - Make An Open World Game/ Rpg In Scratch. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |