home *** CD-ROM | disk | FTP | other *** search
- on moveh2
- global gtime1
- bikeh()
- if (gtime1 mod 2) = 0 then
- duckh()
- end if
- if (gtime1 mod 12) = 0 then
- pandah()
- end if
- if (gtime1 mod 6) = 0 then
- weathercockh()
- end if
- end
-
- on weathercockh
- global gwlist1
- if getAt(gwlist1, 3) = 3 then
- setAt(gwlist1, 3, 1)
- else
- setAt(gwlist1, 3, getAt(gwlist1, 3) + 1)
- end if
- if getAt(gwlist1, 3) = 1 then
- set the memberNum of sprite 18 to 201
- else
- if getAt(gwlist1, 3) = 3 then
- set the memberNum of sprite 18 to 211
- end if
- end if
- end
-
- on pandah
- global gwlist1
- setAt(gwlist1, 4, getAt(gwlist1, 4) * -1)
- if getAt(gwlist1, 4) = 1 then
- set the memberNum of sprite 19 to 202
- else
- set the memberNum of sprite 19 to 212
- end if
- end
-
- on duckh
- global gwlist1
- set num to getAt(gwlist1, 5)
- if num = 29 then
- set num to 1
- else
- set num to num + 1
- end if
- setAt(gwlist1, 5, num)
- if num = 1 then
- set the memberNum of sprite 20 to 203
- else
- if num = 18 then
- set the memberNum of sprite 20 to 213
- end if
- end if
- if num <= 6 then
- set the locH of sprite 20 to getAt([449, 458, 468, 477, 490, 503], num)
- set the locV of sprite 20 to getAt([200, 195, 191, 186, 190, 194], num)
- else
- if (num >= 11) and (num <= 13) then
- set num to num - 10
- set the locH of sprite 20 to getAt([517, 530, 543], num)
- set the locV of sprite 20 to getAt([199, 203, 207], num)
- else
- if (num >= 18) and (num <= 25) then
- set num to num - 17
- set the locH of sprite 20 to getAt([533, 513, 493, 473, 453, 446, 440, 433], num)
- set the locV of sprite 20 to getAt([214, 217, 220, 222, 225, 220, 215, 210], num)
- end if
- end if
- end if
- end
-
- on bikeh
- global gwlist1
- set num to getAt(gwlist1, 6)
- if num = 218 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 21 to 204
- set the memberNum of sprite 22 to 205
- else
- if num < 101 then
- set the locH of sprite 21 to 584 - (num * 4)
- set the locH of sprite 22 to 57 + (num * 5)
- else
- if num = 110 then
- set the memberNum of sprite 21 to 205
- set the memberNum of sprite 22 to 204
- else
- if (num > 110) and (num < 210) then
- set the locH of sprite 21 to 184 + ((num - 110) * 4)
- set the locH of sprite 22 to 557 - ((num - 110) * 5)
- end if
- end if
- end if
- end if
- end
-