Presentation is loading. Please wait.

Presentation is loading. Please wait.

Timers Exploring Computer Science Lesson 4-12. Objectives The students will be able to: Create a timer.

Similar presentations


Presentation on theme: "Timers Exploring Computer Science Lesson 4-12. Objectives The students will be able to: Create a timer."— Presentation transcript:

1 Timers Exploring Computer Science Lesson 4-12

2 Objectives The students will be able to: Create a timer

3 Timers Timers are simply a variable that counts down (or up). You already know how to initialize a variable You know how to add or subtract one You know how to “wait” 1 second Bottom line – You know how to make a timer! I don’t need to teach you.

4 Timer Project How to make a timer in Scratch: 1.Create a variable called timer. 2.When the flag is clicked, initialize the timer to 10. 3.Continually, wait 1 second and subtract one from timer Output the current time either with a sprite or just show the variable 4.Check if the timer = 0 If the timer = 0 make either the background or a huge sprite say “Time’s Up” 5.When the green flag is clicked, everything should start over. 6.Be creative as to what you want your program to look like. 7.Make sure the timer stops at 0 and does not continue into negatives.


Download ppt "Timers Exploring Computer Science Lesson 4-12. Objectives The students will be able to: Create a timer."

Similar presentations


Ads by Google