P
Preschool Mike
I'm trying to create a game for my preschool class where they have to
identify a certain number of shapes within a limited amount of time. I've
designed the "wait" procedure from David Marcovitz book (Powerful PowerPoint
for Educators) as my timer. Here is my design: I have 9 slides. The timer
is on the master slide so it shows up on all slides. Slide 1 has all the
shapes including the start game button, which starts the timer and plays a
sound on which shape to identify. When the student clicks on the correct
shape it plays a sound on the next shape to identify and advances to the next
slide and so on. If the student is not able to identify all the shapes
before the time runs out a picture appears (explosion) and the game ends, but
if they are able to identify all the shapes a shape appears on the last slide
anouncing they win. I'd like to have the last shape that they need to
identify (aftter click) to advance to the last slide, stop my countdown, and
display the shape that says they win. I'd also like for both (win or loose)
to play a sound at the end if possible.
Here is a sample of my code:
Sub Wait(waitTime As Long)
Start = Timer
While Timer < Start + waitTime
DoEvents
Wend
End Sub
Sub CountDown()
Initialize
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"10"
Wait (1)
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"9"
Wait (1)
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"8"
Wait (1)
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"7"
Wait (1)
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"6"
Wait (1)
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"5"
Wait (1)
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"4"
Wait (1)
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"3"
Wait (1)
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"2"
Wait (1)
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"1"
Wait (1)
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"Out of Time"
ActivePresentation.SlideMaster.Shapes("explosion").Visible = True
End Sub
Sub Initialize()
ActivePresentation.SlideMaster.Shapes("explosion").Visible = False
End Sub
Sub NextShape()
ActivePresentation.SlideShowWindow.View.Next
End Sub
Any help is appreciated or suggestions on an alternative way to accomplish
what I'm trying to do.
Thanks,
Mike
identify a certain number of shapes within a limited amount of time. I've
designed the "wait" procedure from David Marcovitz book (Powerful PowerPoint
for Educators) as my timer. Here is my design: I have 9 slides. The timer
is on the master slide so it shows up on all slides. Slide 1 has all the
shapes including the start game button, which starts the timer and plays a
sound on which shape to identify. When the student clicks on the correct
shape it plays a sound on the next shape to identify and advances to the next
slide and so on. If the student is not able to identify all the shapes
before the time runs out a picture appears (explosion) and the game ends, but
if they are able to identify all the shapes a shape appears on the last slide
anouncing they win. I'd like to have the last shape that they need to
identify (aftter click) to advance to the last slide, stop my countdown, and
display the shape that says they win. I'd also like for both (win or loose)
to play a sound at the end if possible.
Here is a sample of my code:
Sub Wait(waitTime As Long)
Start = Timer
While Timer < Start + waitTime
DoEvents
Wend
End Sub
Sub CountDown()
Initialize
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"10"
Wait (1)
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"9"
Wait (1)
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"8"
Wait (1)
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"7"
Wait (1)
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"6"
Wait (1)
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"5"
Wait (1)
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"4"
Wait (1)
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"3"
Wait (1)
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"2"
Wait (1)
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"1"
Wait (1)
ActivePresentation.SlideMaster.Shapes("Timebox").TextFrame.TextRange.Text =
"Out of Time"
ActivePresentation.SlideMaster.Shapes("explosion").Visible = True
End Sub
Sub Initialize()
ActivePresentation.SlideMaster.Shapes("explosion").Visible = False
End Sub
Sub NextShape()
ActivePresentation.SlideShowWindow.View.Next
End Sub
Any help is appreciated or suggestions on an alternative way to accomplish
what I'm trying to do.
Thanks,
Mike