Name: Cameron Beattie
Period: 7
Assignment: Lab #6
This problem focused on using variables to increase or decrease the the speed at which a sprite changes costumes.
I made 2 sprites, one that said "faster" and one that said "slower". I used a "speed" variable in combination with an operator to double the speed when clicking on the faster sprite, and reduce the speed by half when clicking on the slower sprite. Then I used an operator and a "speedX" variable too set the max speed to the current speed whenever the current speed became larger than the max speed.
This problem focused on using conditionals to create movement with the arrow keys, and then using the pen tool to draw on the stage.
I had the sprite put the pen down first. I used an "if" statement inside a forever loop and I had it sense when it was pressing an arrow key. If an arrow key was being pressed, then it would move in the direction of that arrow key. Lastly I had the sprite return to the center and clear all pen marks when the space key is pressed.