home *** CD-ROM | disk | FTP | other *** search
- on exitFrame me
- global win, points
- if (the timer / 60) <= 60 then
- points = 2000
- end if
- if ((the timer / 60) <= 120) and ((the timer / 60) > 60) then
- points = 1500
- end if
- if ((the timer / 60) <= 180) and ((the timer / 60) > 120) then
- points = 1000
- end if
- if ((the timer / 60) <= 260) and ((the timer / 60) > 180) then
- points = 500
- end if
- if ((the timer / 60) <= 320) and ((the timer / 60) > 260) then
- points = 250
- end if
- if ((the timer / 60) <= 380) and ((the timer / 60) > 320) then
- points = 250
- end if
- if (the timer / 60) > 380 then
- points = 100
- end if
- if (the timer / 60) > 460 then
- points = 25
- end if
- if win = "yes" then
- puppetSound(3, "win")
- member("youwin").text = "You Win!!!"
- member("points").text = "Total score:" & string(points) & "pts"
- else
- puppetSound(3, "lose")
- member("youwin").text = "give it another try!"
- member("points").text = "Total score:" & string(points) & "pts"
- end if
- end
-