home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global carteldisegni, QEsercizio, voce, Lingua, altezza, larghezza
- set altezza to the mouseV
- set larghezza to the mouseH
- set voce to Lingua & 7
- voce()
- set QEsercizio to random(2)
- if soundBusy(1) then
- sound stop 1
- end if
- pigia()
- nascondi()
- set the visible of sprite 3 to 1
- repeat with n = 25 to 26
- set the moveableSprite of sprite n to 0
- end repeat
- set x to random(3)
- repeat while x = carteldisegni
- set x to random(3)
- end repeat
- set carteldisegni to x
- repeat with n = 24 to 26
- puppetSprite(n, 1)
- end repeat
- set the memberNum of sprite 24 to 44 + carteldisegni
- set y to random(2)
- if carteldisegni = 1 then
- set the memberNum of sprite 25 to 46 + (y * 2)
- set the loc of sprite 25 to point(429, 142)
- set the memberNum of sprite 26 to 46 + (y * 2) + 1
- set the loc of sprite 26 to point(430, 263)
- end if
- if carteldisegni = 2 then
- set the memberNum of sprite 25 to 50 + (y * 2)
- set the loc of sprite 25 to point(372, 310)
- set the memberNum of sprite 26 to 50 + (y * 2) + 1
- set the loc of sprite 26 to point(436, 310)
- end if
- if carteldisegni = 3 then
- set the memberNum of sprite 25 to 54 + (y * 2)
- set the loc of sprite 25 to point(372, 310)
- set the memberNum of sprite 26 to 54 + (y * 2) + 1
- set the loc of sprite 26 to point(436, 310)
- end if
- set the visible of sprite 24 to 1
- updateStage()
- repeat with n = 25 to 26
- set the visible of sprite n to 1
- set the moveableSprite of sprite n to 1
- end repeat
- updateStage()
- Chiamaoggetti()
- end
-
- on Chiamaoggetti
- global QEsercizio, pOggetti, voce, Lingua, carteldisegni
- set voce to Lingua & 7
- voce()
- tieni()
- if QEsercizio = 1 then
- set pippo to the memberNum of sprite 25
- set pOggetti to the name of member pippo
- else
- set pippo to the memberNum of sprite 26
- set pOggetti to the name of member pippo
- end if
- Oggetto()
- tieni()
- set voce to Lingua & carteldisegni & "A"
- voce()
- tieni()
- if QEsercizio = 1 then
- set pippo to the memberNum of sprite 26
- set pOggetti to the name of member pippo
- else
- set pippo to the memberNum of sprite 25
- set pOggetti to the name of member pippo
- end if
- Oggetto()
- tieni()
- set voce to Lingua & carteldisegni & "B"
- voce()
- tieni()
- end
-