Motion Challenges
Challenge One
- Download motionproject from Scratch. Select See Inside. Select File -> Download to your computer.
- Find project on your computer & open.
- Update code to round the speed variable to a whole number (hint: Operators)
- Run the code several times, keeping the time the same, but adjusting just the distance. What did you observe?
- Run the code several times, keeping the distance the same, but adjusting the time. What did you observe?
Challenge Two
- Duplicate current vehicle to add another one.
- You will need to create new variables for speed, distance, time and start position for the new vehicle (hint: Data)
- You will need to update those variables in the new vehicles code.
- Run the code several times, adjusting distance and time for each vehicle. What did you observe?
Challenge Three
Challenge Four
Student Motion Projects
- Update code to second vehicle to calculate for time instead of speed.
- You will need a new equation (hint: Operators)
- Find Distance, Speed, Time Formula here
- Input the same distance for each and race them. What did you observe?
Challenge Four
- Add a finish line sprite. Can you get it to show up at the right distance? (hint: you will have to play around aligning the sprite's center)
- Switch to a "winner" background. How can you use Sensing with a Broadcast to declare the winner?
Student Motion Projects