home *** CD-ROM | disk | FTP | other *** search
- property spriteNum, iam, stime
- global curr, deck
-
- on beginSprite me
- sprite(spriteNum).memberNum = 14
- iam = spriteNum - 10
- end
-
- on mouseDown me
- global points
- puppetSound(3, "pickcard")
- if sprite(spriteNum).memberNum = 14 then
- sprite(spriteNum).memberNum = deck[iam]
- updateStage()
- stime = the ticks
- repeat while (the ticks - stime) < 20
- end repeat
- if deck[iam] = (curr + 1) then
- curr = deck[iam]
- if curr = 13 then
- if the timer < 1000 then
- points = 5000
- end if
- if the timer < 2000 then
- points = 1000
- end if
- if the timer < 4000 then
- points = 800
- end if
- if the timer < 6000 then
- points = 600
- end if
- if the timer < 8000 then
- points = 400
- end if
- if the timer < 10000 then
- points = 300
- end if
- if the timer > 10000 then
- points = 50
- end if
- member("points").text = "points:" && string(points)
- go(3)
- end if
- else
- curr = 0
- repeat with b = 11 to 23
- sprite(b).memberNum = 14
- end repeat
- end if
- end if
- end
-