home *** CD-ROM | disk | FTP | other *** search
- on moveh5
- global gtime1
- bus2h()
- if (gtime1 mod 2) = 0 then
- duck2h()
- end if
- if (gtime1 mod 4) = 0 then
- penguinh()
- end if
- if (gtime1 mod 24) = 0 then
- sealh()
- end if
- end
-
- on duck2h
- global gwlist1
- set num to getAt(gwlist1, 3)
- if num = 18 then
- set num to 1
- else
- set num to num + 1
- end if
- setAt(gwlist1, 3, num)
- if num = 1 then
- set the memberNum of sprite 18 to 291
- set the memberNum of sprite 19 to 292
- else
- if num < 8 then
- set the locH of sprite 18 to 335 + (10 * num)
- set the locH of sprite 19 to 378 + (10 * num)
- else
- if num = 10 then
- set the memberNum of sprite 18 to 301
- set the memberNum of sprite 19 to 302
- else
- if (num > 10) and (num < 17) then
- set the locH of sprite 18 to 405 - (10 * (num - 9))
- set the locH of sprite 19 to 448 - (10 * (num - 9))
- end if
- end if
- end if
- end if
- end
-
- on penguinh
- global gwlist1
- setAt(gwlist1, 4, getAt(gwlist1, 4) * -1)
- if getAt(gwlist1, 4) = 1 then
- set the memberNum of sprite 20 to 293
- set the memberNum of sprite 21 to 294
- else
- set the memberNum of sprite 20 to 303
- set the memberNum of sprite 21 to 304
- end if
- end
-
- on sealh
- global gwlist1
- setAt(gwlist1, 5, getAt(gwlist1, 5) * -1)
- if getAt(gwlist1, 5) = 1 then
- set the memberNum of sprite 24 to 295
- else
- set the memberNum of sprite 24 to 305
- end if
- end
-
- on bus2h
- global gwlist1
- set num to getAt(gwlist1, 6)
- if num = 184 then
- set num to 1
- else
- set num to num + 1
- end if
- setAt(gwlist1, 6, num)
- if num = 1 then
- set the memberNum of sprite 22 to 296
- set the memberNum of sprite 23 to 297
- else
- if num < 84 then
- set the locH of sprite 22 to 586 - (num * 6)
- set the locH of sprite 23 to 76 + (num * 6)
- else
- if num = 93 then
- set the memberNum of sprite 22 to 297
- set the memberNum of sprite 23 to 296
- else
- if (num > 93) and (num < 176) then
- set the locH of sprite 22 to 88 + ((num - 93) * 6)
- set the locH of sprite 23 to 574 - ((num - 93) * 6)
- end if
- end if
- end if
- end if
- end
-