home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global oldsp
- set firstsp to 2
- set Secondsp to 13
- set rolled to 0
- repeat with RollCnt = 0 to 4
- if rollOver(firstsp + RollCnt) then
- if oldsp <> (Secondsp + RollCnt) then
- if oldsp <> 0 then
- set the visible of sprite oldsp to 0
- end if
- set the visible of sprite (Secondsp + RollCnt) to 1
- set oldsp to Secondsp + RollCnt
- set rolled to 1
- exit repeat
- next repeat
- end if
- set rolled to 1
- end if
- end repeat
- if not rolled then
- set the visible of sprite oldsp to 0
- set oldsp to 0
- end if
- go(the frame)
- end
-