--------------  card 35 ---------

On OpenCard 35
if game_on is not 1 then
  play nanjikan
  put 3 into ntx
  naratoranimex
   wait 1 seconds
   play bokuwo
   put 4 into ntx
   naratoranimex

 end if
   put 0 into init35
   put 0 into clock35_1
   put 0 into clock35_2

	SetClock35
end OpenCard

On q_clock35
put random(720) into clock35_1
put random(720) into clock35_2
Setclock35

 if game_on is  1 and init35 = 0 then
  play nanjikan
  put 3 into ntx
  naratoranimex
 put 1 into init35
  end if


 if clock35_1 >= clock35_2 then

put (clock35_1 - clock35_2) into difference 
  QuizDlg7 "El reloj amarillo est __hrs__min ms adelantado que el violeta", difference
 else
 put (clock35_2 - clock35_1) into difference 
  QuizDlg7 "El reloj violeta est __hrs__min ms adelantado que el amarillo", difference
end if

     repeat while quiz_quit = 0
         wait 30 ticks
      end repeat
      put 0 into quiz_quit
  if math_answer is not 1 then
         if math_answer is  -1 then
             play  uhoh2
          else
              play jawharp
             showwitch_surprised
          end if
       else
           play good
           show_frog_good
      end if


End q_clock35



On SetClock35
	put clock35_1 mod 60 into fun
	set data of btn "PinLong1" to fun * 6
	set data of btn "PinShort1" to clock35_1 * 0.5

	put clock35_2 mod 60 into fun
	set data of btn "PinLong2" to fun * 6
	set data of btn "PinShort2" to clock35_2 * 0.5
end SetClock35

On FunUp35_1
	repeat while mouse() is down
		put clock35_1 + 1 into clock35_1
		if clock35_1 >= 720 then
			put clock35_1 - 720 into clock35_1
		end if
		SetClock35
		wait 10 ticks
	end repeat
end FunUp35_1

On FunDown35_1
	repeat while mouse() is down
		put clock35_1 - 1 into clock35_1
		if clock35_1 < 0 then
			put clock35_1 + 720 into clock35_1
		end if
		SetClock35
		wait 10 ticks
	end repeat
end FunDown35_1

On JikanUp35_1
	repeat while mouse() is down
		put clock35_1 + 60 into clock35_1
		if clock35_1 >= 720 then
			put clock35_1 - 720 into clock35_1
		end if
		SetClock35
		wait 10 ticks
	end repeat
end JikanUp35_1

On JikanDown35_1
	repeat while mouse() is down
		put clock35_1 - 60 into clock35_1
		if clock35_1 < 0 then
			put clock35_1 + 720 into clock35_1
		end if
		SetClock35
		wait 10 ticks
	end repeat
end JikanDown35_1

On FunUp35_2
	repeat while mouse() is down
		put clock35_2 + 1 into clock35_2
		if clock35_2 >= 720 then
			put clock35_2 - 720 into clock35_2
		end if
		SetClock35
		wait 10 ticks
	end repeat
end FunUp35_2

On FunDown35_2
	repeat while mouse() is down
		put clock35_2 - 1 into clock35_2
		if clock35_2 >= 720 then
			put clock35_2 - 720 into clock35_2
		end if
		SetClock35
		wait 10 ticks
	end repeat
end FunDown35_2

On JikanUp35_2
	repeat while mouse() is down
		put clock35_2 + 60 into clock35_2
		if clock35_2 >= 720 then
			put clock35_2 - 720 into clock35_2
		end if
		SetClock35
		wait 10 ticks
	end repeat
end JikanUp35_2

On JikanDown35_2
	repeat while mouse() is down
		put clock35_2 - 60 into clock35_2
		if clock35_2 < 0 then
			put clock35_2 + 720 into clock35_2
		end if
		SetClock35
		wait 10 ticks
	end repeat
end JikanDown35_2

-------------- end card 35---------

