home *** CD-ROM | disk | FTP | other *** search
- on checkkata
- global cnt, cnt2, cnt3
- if the mouseDown then
- cursor([31, 32])
- if the mouseCast = the number of cast "Sweet" then
- if cnt3 = 0 then
- set the visible of sprite 7 to 1
- set the visible of sprite 8 to 0
- set cnt3 to cnt3 + 1
- else
- if cnt3 > 3 then
- set the visible of sprite 7 to 0
- set the visible of sprite 8 to 0
- end if
- end if
- set cnt to cnt + 1
- if cnt > 4 then
- puppetSound("3.äÏÇ‘-b")
- dspten(1)
- set cnt to 0
- set cnt2 to cnt2 + 1
- end if
- else
- if the mouseCast <> 8 then
- set the visible of sprite 7 to 0
- set the visible of sprite 8 to 1
- set cnt3 to 0
- else
- set the visible of sprite 7 to 0
- set the visible of sprite 8 to 0
- end if
- set cnt to 0
- end if
- else
- cursor([33, 34])
- end if
- if cnt2 > 0 then
- return 1
- else
- return 0
- end if
- end
-