home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global funds, possivel, balao, barratexto
- if barratexto = 99 then
- voltatexto()
- end if
- if balao = 1 then
- set balao to 0
- set the locV of sprite 37 to -1000
- end if
- if the locV of sprite 37 = 240 then
- set the locV of sprite 37 to -1000
- updateStage()
- end if
- puppetSound("arrasta")
- set funds to the clickOn
- set spr to the clickOn
- set rr to the castNum of sprite spr
- set the castNum of sprite 48 to rr
- set the height of sprite 48 to the height of member rr
- set the width of sprite 48 to the width of member rr
- set the locV of sprite 48 to the locV of sprite spr
- set the locH of sprite 48 to the locH of sprite spr
- set the locV of sprite spr to -1000
- arruma(spr - 12)
- updateStage()
- repeat while the mouseDown
- set mv to the mouseV
- set mh to the mouseH
- set the locV of sprite 48 to mv
- set the locH of sprite 48 to mh
- updateStage()
- end repeat
- end
-
- on mouseUp
- global opcao, linha, coluna, desenho, ozzy, conta, funds, possivel
- if funds = the clickOn then
- set funds to 0
- set st to the top of sprite 48
- set sb to the bottom of sprite 48
- set sl to the left of sprite 48
- set sr to the right of sprite 48
- set mv to the locV of sprite 48
- set mh to the locH of sprite 48
- set cas to the castNum of sprite 48
- set hei to the height of member cas
- set wid to the width of member cas
- if (mv < 67) or (mv > 242) then
- varia(48, mv, mh, 376, 97)
- set the locV of sprite 48 to -1000
- updateStage()
- else
- if sb > 226 then
- spriteBox(48, sprlef(48), 227 - hei, sprrig(48), 226)
- updateStage()
- end if
- if st < 87 then
- spriteBox(48, sprlef(48), 87, sprrig(48), 87 + hei)
- updateStage()
- end if
- if sl < 16 then
- spriteBox(48, 16, sprtop(48), 16 + wid, sprbot(48))
- updateStage()
- end if
- if sr > 625 then
- spriteBox(48, 625 - wid, sprtop(48), 625, sprbot(48))
- updateStage()
- end if
- if (sr > 210) and (mh <= 218) then
- spriteBox(48, 215 - wid, sprtop(48), 215, sprbot(48))
- updateStage()
- end if
- if (sl < 215) and (mh > 218) then
- spriteBox(48, 221, sprtop(48), 221 + wid, sprbot(48))
- updateStage()
- end if
- if (sr > 415) and (mh <= 423) then
- spriteBox(48, 420 - wid, sprtop(48), 420, sprbot(48))
- updateStage()
- end if
- if (sl < 420) and (mh > 423) then
- spriteBox(48, 426, sprtop(48), 426 + wid, sprbot(48))
- updateStage()
- end if
- set conta to conta + 1
- if conta = 24 then
- set possivel to 0
- end if
- set cc to the castNum of sprite 48
- set cv to the locV of sprite 48
- set ch to the locH of sprite 48
- setAt(ozzy, conta, cv)
- set the locV of sprite (12 + conta) to cv
- set the locH of sprite (12 + conta) to ch
- set the memberNum of sprite (12 + conta) to cc
- set the locV of sprite 48 to -1000
- updateStage()
- end if
- end if
- end
-