B BESQUEUT Senior Member Oct 21, 2015 #1 Time not correctly simulated ? This work : Code: do sertxd (#Time," ") if time>4 then sertxd("Time Over",13) endif loop That not : Code: do ' sertxd (#Time," ") if time>4 then sertxd("Time Over",13) endif loop Last edited: Oct 21, 2015
Time not correctly simulated ? This work : Code: do sertxd (#Time," ") if time>4 then sertxd("Time Over",13) endif loop That not : Code: do ' sertxd (#Time," ") if time>4 then sertxd("Time Over",13) endif loop
Technical Technical Support Staff member Oct 21, 2015 #3 see http://www.picaxeforum.co.uk/showthread.php?27965-PE-6-0-8-1-no-time&p=288876&viewfull=1#post288876 the sertxd gives you a time delay - without it you are in a very tight loop that needs hundreds of thousands of iterations before time will get to 4
see http://www.picaxeforum.co.uk/showthread.php?27965-PE-6-0-8-1-no-time&p=288876&viewfull=1#post288876 the sertxd gives you a time delay - without it you are in a very tight loop that needs hundreds of thousands of iterations before time will get to 4
B BESQUEUT Senior Member Oct 21, 2015 #4 Technical said: see http://www.picaxeforum.co.uk/showthread.php?27965-PE-6-0-8-1-no-time&p=288876&viewfull=1#post288876 the sertxd gives you a time delay - without it you are in a very tight loop that needs hundreds of thousands of iterations before time will get to 4 Click to expand... OK : thank you. Now I understand how Time is simulated. Confirmed with that code : Code: do pause 100 if time>4 then sertxd("Time Over",13) endif loop
Technical said: see http://www.picaxeforum.co.uk/showthread.php?27965-PE-6-0-8-1-no-time&p=288876&viewfull=1#post288876 the sertxd gives you a time delay - without it you are in a very tight loop that needs hundreds of thousands of iterations before time will get to 4 Click to expand... OK : thank you. Now I understand how Time is simulated. Confirmed with that code : Code: do pause 100 if time>4 then sertxd("Time Over",13) endif loop