home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global gMosaicMap, gMosaicCount, gMosaicX, gMosaicY, gHalfTileSizeX, gHalfTileSizeY
- set gMosaicMap to "CBEDAX"
- set gMosaicCount to 6
- set gMosaicX to 2
- set gMosaicY to 3
- set gHalfTileSizeX to 48
- set gHalfTileSizeY to 38
- repeat with s = 1 to gMosaicCount - 1
- puppetSprite(s + 20, 1)
- set spriteToMove to charToNum(char s of gMosaicMap) - 64 + 20
- set tileToMatch to 10 + s
- set the locH of sprite spriteToMove to the locH of sprite tileToMatch
- set the locV of sprite spriteToMove to the locV of sprite tileToMatch
- end repeat
- end
-