Friday, September 29, 2017

scratch experience


Hi, we are Malena and Violeta, we are going to talk about our expirience with a scratch game, the low dificulty car game. It wasn't easy to achiev, because we must to try lot of blocks until de car moves in both directions.



As you see, there were lots of blocks in this game. It goes like this: when the player presses the green flag, the variable "speed" sets to 0. And then, forever, if you press the right arrow the "speed" variable sets to 10, and then the car turns 5 degrees to the right and moves as many steps as the "speed" variable equals (so, 10 in this case). The same thing happens when the user presses the left arrow, only that to the other side. We also ordered the blocks so that if the user presses the up arrow, the variable "speed" to 10 sets. The car then moves 10 steps forward when you are pressing this arrow, because we used the "move speed steps". There is another group of blocks that makes that if the user is touching the down arrow, the "speed" should set to 0, and then the car moves as many steps as the "speed" variable equals, so 0 (the car stops).







In the last picture there is a set of instructions that make the car go slowlier when it touches the green color (the grass). If the object is touching the green color and the speed variable equals more than 0,4 (it will always be like that when you are moving) the speed sets to 0,4 and the car moves "speed" steps (only 0,4).

No comments:

Post a Comment