home *** CD-ROM | disk | FTP | other *** search
- on HdleIdleAktion
- global _AktionName, _AktionSim, _AktionZeit, _AktionListe, _SpWeiter
- if (the ticks - _AktionZeit) > _AktionListe[2] then
- tell the stage
- sprite(_AktionListe[1]).member = _AktionName & _AktionSim
- _AktionSim = _AktionSim + _AktionListe[4]
- _AktionZeit = the ticks
- if _AktionListe[4] > 0 then
- if _AktionSim > _AktionListe[3] then
- if _AktionListe[5] then
- _AktionSim = _AktionSim - 1
- _AktionListe[3] = 1
- _AktionListe[4] = -1
- _AktionZeit = _AktionZeit + _AktionListe[6]
- else
- if _AktionListe[7] then
- AktionZusatz(_AktionName)
- end if
- _AktionName = EMPTY
- _AktionSim = 0
- _SpWeiter = 1
- end if
- end if
- else
- if _AktionSim < _AktionListe[3] then
- if _AktionListe[7] then
- AktionZusatz(_AktionName)
- end if
- _AktionName = EMPTY
- _AktionSim = 0
- _SpWeiter = 1
- end if
- end if
- end tell
- end if
- end
-
- on HdleIdleAnimation
- global _AnimName, _AnimSim, _AnimZeit, _AnimListe, _SpWeiter
- if (the ticks - _AnimZeit) > _AnimListe[2] then
- tell the stage
- sprite(_AnimListe[1]).member = _AnimName & _AnimSim
- _AnimSim = _AnimSim + _AnimListe[3]
- _AnimZeit = the ticks
- if _AnimListe[3] > 0 then
- if _AnimSim > _AnimListe[7] then
- if _AnimListe[5] and not _AnimListe[4] then
- _AnimSim = _AnimListe[6]
- _AnimZeit = the ticks + _AnimListe[8]
- else
- if _AnimListe[4] then
- _AnimSim = _AnimSim - 1
- _AnimListe[6] = _AnimSim
- _AnimListe[7] = 1
- _AnimListe[3] = -1
- _AnimZeit = the ticks + _AnimListe[8]
- else
- sprite(_AnimListe[1]).visible = _AnimListe[9]
- if _AnimListe[10] then
- AnimZusatz(_AnimName)
- end if
- _AnimName = EMPTY
- _AnimSim = 0
- _SpWeiter = 1
- end if
- end if
- end if
- else
- if _AnimSim < _AnimListe[7] then
- if _AnimListe[5] then
- if _AnimListe[4] then
- _AnimListe[7] = _AnimListe[6]
- _AnimListe[6] = 1
- _AnimListe[3] = 1
- _AnimSim = _AnimListe[6]
- _AnimZeit = the ticks + _AnimListe[8]
- else
- _AnimSim = _AnimListe[6]
- _AnimZeit = the ticks + _AnimListe[8]
- end if
- else
- sprite(_AnimListe[1]).visible = _AnimListe[9]
- if _AnimListe[10] then
- AnimZusatz(_AnimName)
- end if
- _AnimName = EMPTY
- _AnimSim = 0
- _SpWeiter = 1
- end if
- end if
- end if
- end tell
- end if
- end
-
- on HdleIdleCursor
- global _cursorname, _CursorKanal, _anhang
- if not (_cursorname = EMPTY) then
- tell the stage
- mauspos = point(the mouseH, the mouseV)
- sprite(_CursorKanal).loc = mauspos
- if _anhang then
- sprite(_anhang).loc = mauspos
- end if
- end tell
- end if
- end
-
- on HdleLeistenbewegung
- global _LeistenPos
- tell the stage
- pos = sprite(4).locH
- end tell
- if pos < _LeistenPos then
- dif = 13
- if (pos + dif) >= _LeistenPos then
- dif = pos - _LeistenPos
- _LeistenPos = EMPTY
- end if
- else
- dif = -13
- if (pos + dif) <= _LeistenPos then
- dif = _LeistenPos - pos
- _LeistenPos = EMPTY
- end if
- end if
- tell the stage
- sprite(4).locH = pos + dif
- repeat with i = 5 to 17
- sprite(i).locH = sprite(i).locH + dif
- end repeat
- end tell
- end
-