home *** CD-ROM | disk | FTP | other *** search
- property spriteNum, oldloc
- global currentcard, stack1, stack2, stack3, stack4, stack5, stack6, stack7, stack8, stack9, stack10, stack11, stack12, stack13, orig
-
- on beginSprite me
- oldloc = sprite(spriteNum).loc
- sprite(spriteNum).visible = 0
- end
-
- on mouseDown me
- puppetSound(3, "pickcard")
- if sprite(spriteNum).memberNum <> 53 then
- if currentcard = 0 then
- sprite(25).loc = sprite(spriteNum).loc
- sprite(25).visible = 1
- sprite(25).memberNum = sprite(spriteNum).memberNum
- currentcard = 25
- ack = findPos(stack1, sprite(spriteNum).memberNum)
- if ack > 0 then
- deleteAt(stack1, count(stack1))
- orig = 1
- if count(stack1) > 0 then
- sprite(10).memberNum = stack1[count(stack1)]
- else
- sprite(10).memberNum = 53
- end if
- end if
- ack = findPos(stack2, sprite(spriteNum).memberNum)
- if ack > 0 then
- deleteAt(stack2, count(stack2))
- orig = 2
- if count(stack2) > 0 then
- sprite(11).memberNum = stack2[count(stack2)]
- else
- sprite(11).memberNum = 53
- end if
- end if
- ack = findPos(stack3, sprite(spriteNum).memberNum)
- if ack > 0 then
- deleteAt(stack3, count(stack3))
- orig = 3
- if count(stack3) > 0 then
- sprite(12).memberNum = stack3[count(stack3)]
- else
- sprite(12).memberNum = 53
- end if
- end if
- ack = findPos(stack4, sprite(spriteNum).memberNum)
- if ack > 0 then
- deleteAt(stack4, count(stack4))
- orig = 4
- if count(stack4) > 0 then
- sprite(13).memberNum = stack4[count(stack4)]
- else
- sprite(13).memberNum = 53
- end if
- end if
- ack = findPos(stack5, sprite(spriteNum).memberNum)
- if ack > 0 then
- deleteAt(stack5, count(stack5))
- orig = 5
- if count(stack5) > 0 then
- sprite(14).memberNum = stack5[count(stack5)]
- else
- sprite(14).memberNum = 53
- end if
- end if
- ack = findPos(stack6, sprite(spriteNum).memberNum)
- if ack > 0 then
- deleteAt(stack6, count(stack6))
- orig = 6
- if count(stack6) > 0 then
- sprite(15).memberNum = stack6[count(stack6)]
- else
- sprite(15).memberNum = 53
- end if
- end if
- ack = findPos(stack7, sprite(spriteNum).memberNum)
- if ack > 0 then
- deleteAt(stack7, count(stack7))
- orig = 7
- if count(stack7) > 0 then
- sprite(16).memberNum = stack7[count(stack7)]
- else
- sprite(16).memberNum = 53
- end if
- end if
- ack = findPos(stack8, sprite(spriteNum).memberNum)
- if ack > 0 then
- deleteAt(stack8, count(stack8))
- orig = 8
- if count(stack8) > 0 then
- sprite(17).memberNum = stack8[count(stack8)]
- else
- sprite(17).memberNum = 53
- end if
- end if
- ack = findPos(stack9, sprite(spriteNum).memberNum)
- if ack > 0 then
- deleteAt(stack9, count(stack9))
- orig = 9
- if count(stack9) > 0 then
- sprite(18).memberNum = stack9[count(stack9)]
- else
- sprite(18).memberNum = 53
- end if
- end if
- ack = findPos(stack10, sprite(spriteNum).memberNum)
- if ack > 0 then
- deleteAt(stack10, count(stack10))
- orig = 10
- if count(stack10) > 0 then
- sprite(19).memberNum = stack10[count(stack10)]
- else
- sprite(19).memberNum = 53
- end if
- end if
- ack = findPos(stack11, sprite(spriteNum).memberNum)
- if ack > 0 then
- deleteAt(stack11, count(stack11))
- orig = 11
- if count(stack11) > 0 then
- sprite(20).memberNum = stack11[count(stack11)]
- else
- sprite(20).memberNum = 53
- end if
- end if
- ack = findPos(stack12, sprite(spriteNum).memberNum)
- if ack > 0 then
- deleteAt(stack12, count(stack12))
- orig = 12
- if count(stack12) > 0 then
- sprite(21).memberNum = stack12[count(stack12)]
- else
- sprite(21).memberNum = 53
- end if
- end if
- ack = findPos(stack13, sprite(spriteNum).memberNum)
- if ack > 0 then
- deleteAt(stack13, count(stack13))
- orig = 13
- if count(stack13) > 0 then
- sprite(22).memberNum = stack13[count(stack13)]
- else
- sprite(22).memberNum = 53
- end if
- end if
- repeat while the mouseDown
- sprite(currentcard).locH = the mouseH
- sprite(currentcard).locV = the mouseV
- updateStage()
- end repeat
- end if
- end if
- end
-