home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global altezza, larghezza, animale, ambiente, esatto, acceso
- if acceso = 1 then
- set pippo to 41
- if soundBusy(1) then
- sound stop 1
- end if
- set K1 to 107
- set k2 to 89
- puppetSprite(pippo, 1)
- set animale to 3
- set the constraint of sprite pippo to 27
- set the visible of sprite pippo to 1
- updateStage()
- pigia()
- end if
- end
-
- on mouseUp
- global altezza, larghezza, animale, ambiente, esatto, acceso
- set pippo to 41
- if the moveableSprite of sprite pippo then
- if soundBusy(1) then
- sound stop 1
- end if
- set K1 to 107
- set k2 to 89
- puppetSprite(21, 1)
- puppetSprite(22, 1)
- if sprite 41 intersects sprite(20) then
- if (larghezza > 98) and (larghezza < (98 + K1)) and (altezza > 248) and (altezza < (248 + k2)) then
- set ambiente to 2
- set the memberNum of sprite 21 to 87
- set the loc of sprite 21 to point(151, 291)
- set the visible of sprite 21 to 1
- updateStage()
- pigia()
- set the loc of sprite pippo to point(277, 291)
- set the moveableSprite of sprite 41 to 0
- setAt(esatto, animale, 1)
- updateStage()
- giusto()
- else
- Sbagliato()
- set the loc of sprite pippo to point(402, 195)
- set the visible of sprite 21 to 0
- set the visible of sprite 22 to 0
- set animale to 0
- set ambiente to 0
- end if
- else
- Sbagliato()
- set the loc of sprite pippo to point(402, 195)
- set the visible of sprite 21 to 0
- set the visible of sprite 22 to 0
- set animale to 0
- set ambiente to 0
- end if
- if esatto = list(1, 1, 1) then
- tieni()
- alleluia()
- tieni()
- set esatto to list(0, 0, 0)
- repeat with pippo = 40 to 42
- puppetSprite(pippo, 0)
- end repeat
- nascondi()
- end if
- end if
- end
-