Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clock()
- if turn_1 == true then
- timer-=1*(1/60)
- end
- end
- function draw_clock()
- print(timer,10,20,1)
- if timer<0 and turn_1==true then
- timer=0
- if timer == 0 then
- turn_1 = false
- if turn_1 == false then
- turn_2 = true
- if timer==10 and turn_1==true then
- timer-=1*(1/60)
- end
- end
- end
- end
- end
- function switch_turn()
- if turn_2 == true then
- print(timer_2)
- timer_2-=1*(1/60)
- end
- if timer_2<0 then
- timer_2=0
- end
- if timer_2==0 then
- turn_2=false
- turn_1=true
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment