Tonight we used Scratch again. We learned how to make a sprite move up, down, left, and right. In addition we created code to make it jump forward and backward.
This code switches screens when the sprite reaches the right side. The sprite also gets a point, if they are the first to reach the right side.
This code is for the girl sprite, she can dance too. She uses the e to move up, the x to move down, the f to move right, and the s to move left. To make her dance, press the c key.
This code is for the boy, he can dance (d key) and he moves with the arrow key.
0 comments:
Post a Comment