home *** CD-ROM | disk | FTP | other *** search
- property myValue, Exec
- global TotalPoints, CorrectAnswer, QuestionAnswered, JokerPoints
-
- on beginSprite
- Exec = 1
- end
-
- on mouseUp
- if Exec then
- if CorrectAnswer = myValue then
- TotalPoints = TotalPoints + 20 + 20 - (the timer / 60) + JokerPoints
- member("FPoints").text = string(TotalPoints)
- QuestionAnswered = 1
- if the soundEnabled then
- puppetSound(3, "RightSound")
- end if
- sendAllSprites(#GoToNextQuestion)
- else
- if the soundEnabled then
- puppetSound(3, "WrongSound")
- end if
- sendAllSprites(#GoToNextQuestion)
- end if
- end if
- end
-
- on DontExecbtn
- Exec = 0
- end
-
- on Execbtn
- Exec = 1
- end
-
- on getPropertyDescriptionList
- p_list = [#myValue: [#comment: "Wich is my value: ", #format: #integer, #default: 0]]
- return p_list
- end
-