Tony,
Welcome to VBA Express. If you've read the Forum FAQ, you'll know that we don't DO homework, but we love to help with it.
Any time that you are coding, you must have an algorithm before you start, even if it is only in your head. An algorithm is merely a road map of what your code will do and it often looks and reads like code and even uses lots of code Keywords.
A sample of what your algorithm might look like is
Sub On Slide Click
If Answer = True Then
'Hmm. Need list of correct Answers
Show Next slide
Else
Decrement Life Counter
Show Default False Slide
'Hmm. Need slide index, to return to Next slide from False slide
End If
End Sub
As you can see, that algorithm merely describes what you have told us in your post. It would really help to have a complete list of Business Rules for your project. Business rules look like snippets of code.
- On Question Slide Click, If answer = True Then Show Next Slide
- Else If answer False Then Show default False Slide
- If False Slide Then Decrement Counter
- If Counter = 0 then Show Game-Over Slide
- On False Slide Click Show Next Slide in Questions
- On Game-Over Slide Click, If Play Again, Show Question Slide()1 OR CheckPoint Slide(n+1), Else quit
- If CheckPoint Slide then Reset Life Counter
Note that the business rules are not in any real algorithmic order. They just tell you what needs to be done.
You can format your code like I did using the # button on the Reply Editor Toolbar. You can click the Button and paste the code in between the new Code tags, or Select the code, then click the button, or you can manually type the tags before and after the code.
If you use the "Go Advanced"editor, you get a lot more formatting options.