home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global posH, posV, bgArray, dispBG, theCol, theRow
- go(the frame)
- if rollOver(47) then
- toolsUp()
- else
- toolsDown()
- end if
- set colWidth to 68
- set colHeight to 43
- set offsetH to 153
- set offsetV to 89
- puppetSprite(3, 1)
- puppetSprite(4, 1)
- puppetSprite(6, 1)
- set mv to the mouseV
- set mh to the mouseH
- set theCol to (mh - (offsetH - colWidth)) / colWidth
- set theRow to (mv - (offsetV - colHeight)) / colHeight
- if (theRow > 0) and (theRow < 9) and (theCol > 0) and (theCol < 8) then
- set the castNum of sprite 3 to 5
- set the locH of sprite 3 to value(item theCol of posH)
- set the locV of sprite 3 to value(item theRow of posV)
- else
- set the locH of sprite 3 to -2000
- end if
- if dispBG = 1 then
- if (theRow > 0) and (theRow < 9) and (theCol > 0) and (theCol < 8) then
- set the castNum of sprite 6 to value((10 * theRow) + theCol)
- set the locH of sprite 6 to value(item theCol of posH) + (colWidth / 2)
- set the locV of sprite 6 to value(item theRow of posV) + (colHeight / 2)
- else
- set the castNum of sprite 6 to 0
- end if
- end if
- updateStage()
- end
-