home *** CD-ROM | disk | FTP | other *** search
- property snum, cnum, acount, dcount
- global naobj, kidobj
-
- on birth me, lh, lv, spnum
- set snum to spnum
- set cnum to the number of cast "na_de.loop"
- set the puppet of sprite snum to 1
- set the type of sprite snum to 1
- set the castNum of sprite snum to cnum
- set the ink of sprite snum to 36
- set the foreColor of sprite snum to 255
- set the backColor of sprite snum to 0
- set the locH of sprite snum to lh
- set the locV of sprite snum to lv
- set acount to 0
- set dcount to 0
- return me
- end
-
- on namove me
- if the frame >= label("check") then
- if cnum <> the number of cast "na_down" then
- set cnum to the number of cast "na_de.loop"
- set the castNum of sprite snum to cnum
- end if
- exit
- end if
- set acount to acount - 1
- if acount = 8 then
- puppetSound(4, the number of cast "p_hit")
- else
- if acount <= 0 then
- if dcount = 9 then
- set cnum to the number of cast "na_down"
- puppetSound("win")
- set dcount to 10
- showscore()
- else
- if dcount < 9 then
- set ar to random(40 - dcount)
- if cnum <> the number of cast "na_de.loop" then
- set cnum to the number of cast "na_de.loop"
- set acount to 1 + random(4)
- else
- if ar > 28 then
- set cnum to the number of cast "na_gu"
- set acount to 3 + random(3)
- else
- if ar <= 3 then
- set cnum to the number of cast "na_PR"
- puppetSound(4, the number of cast "p_play")
- if the cnum of kidobj = the number of cast "kid_de.loop" then
- kiddamage(kidobj)
- set acount to 10
- else
- set acount to 5 + random(3)
- end if
- else
- if ar <= 6 then
- set cnum to the number of cast "na_PL"
- puppetSound(4, the number of cast "p_play")
- if the cnum of kidobj = the number of cast "kid_de.loop" then
- kiddamage(kidobj)
- set acount to 10
- else
- set acount to 5 + random(3)
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- set the castNum of sprite snum to cnum
- end if
- end if
- end
-
- on nadamage me
- set cnum to the number of cast "na_da"
- set acount to 6
- set the castNum of sprite snum to cnum
- set dcount to dcount + 1
- set the puppet of sprite (dcount + 10) to 1
- set the blend of sprite (dcount + 10) to 30
- end
-