home *** CD-ROM | disk | FTP | other *** search
- global ganswer, gchangecount, gchangetempo
-
- on init
- set ganswer to 2
- set gchangecount to 1
- put gchangecount - 1 into field "POINT"
- set gchangetempo to 10
- puppetTempo(gchangetempo)
- end
-
- on doanswer
- if the frame = 1 then
- exit
- end if
- set spnum to clickOn()
- set myanswer to spnum - 10
- if myanswer = ganswer then
- playsound(25)
- set gchangecount to gchangecount + 1
- put gchangecount - 1 into field "POINT"
- repeat with i = 1 to 3
- set the castNum of sprite spnum to 14
- updateStage()
- wait(10)
- set the castNum of sprite spnum to 15
- updateStage()
- wait(10)
- end repeat
- set the castNum of sprite spnum to 13
- updateStage()
- waitsound()
- wait(30)
- set gchangetempo to gchangetempo + 1
- puppetTempo(gchangetempo)
- changenasu()
- pause()
- else
- set the castNum of sprite spnum to 16
- playsound(26)
- waitsound()
- set the castNum of sprite (ganswer + 10) to 15
- playsound(24)
- waitsound()
- wait(30)
- set the castNum of sprite spnum to 13
- set the castNum of sprite (ganswer + 10) to 13
- updateStage()
- wait(10)
- go(1)
- end if
- end
-
- on startgame
- pushbtnmove()
- set ganswer to 2
- set gchangecount to 1
- put gchangecount - 1 into field "POINT"
- set gchangetempo to 10
- puppetTempo(gchangetempo)
- waitsound()
- changenasu()
- end
-
- on settempo
- puppetTempo(gchangetempo)
- end
-
- on changenasu
- set the castNum of sprite 12 to 15
- playsound(24)
- waitsound()
- set the castNum of sprite 12 to 13
- updateStage()
- set ganswer to 2
- repeat with i = 1 to gchangecount
- set change to random(3)
- play frame string(change)
- if ganswer = 1 then
- if change = 1 then
- set ganswer to 2
- else
- if change = 2 then
- nothing()
- else
- if change = 3 then
- set ganswer to 3
- end if
- end if
- end if
- next repeat
- end if
- if ganswer = 2 then
- if change = 1 then
- set ganswer to 1
- else
- if change = 2 then
- set ganswer to 3
- else
- if change = 3 then
- nothing()
- end if
- end if
- end if
- next repeat
- end if
- if ganswer = 3 then
- if change = 1 then
- nothing()
- next repeat
- end if
- if change = 2 then
- set ganswer to 2
- next repeat
- end if
- if change = 3 then
- set ganswer to 1
- end if
- end if
- end repeat
- go("M")
- end
-