This sensing block tests to see if our Giga sprite is touching any black lines, using the touching colour sensor and if this test is true, then we take back the previous steps. We need to program that, If it is touching a wall, we want it to say “Ahhh” for a period of time, then it goes backwards which makes it look like it has bounced off the wall. You need to stop when the Maze wall is touched. The problem at the moment is that you can walk through walls. Program your sprite to move in the corresponding direction (left, up, and down) when the arrow keys on the keyboard are pressed Keep the cat from walking through walls When the right arrow key is pressed we can point the Sprite in a certain direction and move ten steps. Make the cat walk around using arrow keys
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |