home *** CD-ROM | disk | FTP | other *** search
- on displayFX frameNum
- global scoreData, FXbgdData, kBgdFXspr, FXfgdData, kFgdFXspr, stageCenterH, stageCenterV
- if frameNum > count(FXbgdData) then
- set the locH of sprite kBgdFXspr to -1000
- else
- set curFX to getAt(FXbgdData, frameNum)
- if curFX = 0 then
- set the locH of sprite kBgdFXspr to -1000
- else
- set the castNum of sprite kBgdFXspr to adjustCastNum(curFX)
- set the locH of sprite kBgdFXspr to stageCenterH
- set the locV of sprite kBgdFXspr to stageCenterV
- end if
- end if
- if frameNum > count(FXfgdData) then
- set the locH of sprite kFgdFXspr to -1000
- else
- set curFX to getAt(FXfgdData, frameNum)
- if curFX = 0 then
- set the locH of sprite kFgdFXspr to -1000
- else
- set the castNum of sprite kFgdFXspr to adjustCastNum(getAt(curFX, 1))
- set the locH of sprite kFgdFXspr to getAt(curFX, 2) - 80
- set the locV of sprite kFgdFXspr to getAt(curFX, 3) - 35
- end if
- end if
- end
-