Posted 22 May 2014 - 06:45 AM
Why on earth does this not work?
Code:
http://pastebin.com/fygiHUns
Setup:
http://imgur.com/tnM4S5f
Problem:
Even though that in the code its clearly mentioned that two functions should run, only one does, and it never ends.
I have tryed some debugging and found that if you put a print statement in the for loop inside function drawTurtles() and one outside the for loop, it prints the one inside the for loop 14 times, but the one outside never gets executed.
I wish for advice and help and I hav had this problem for almost two weeks now. Thank you!
Code:
http://pastebin.com/fygiHUns
Setup:
http://imgur.com/tnM4S5f
Problem:
Even though that in the code its clearly mentioned that two functions should run, only one does, and it never ends.
I have tryed some debugging and found that if you put a print statement in the for loop inside function drawTurtles() and one outside the for loop, it prints the one inside the for loop 14 times, but the one outside never gets executed.
I wish for advice and help and I hav had this problem for almost two weeks now. Thank you!