Hi,
I'm hoping I'm posting in the right place but it's my first time posting here, so any guidance at all will be appreciated.
I've been coding a quiz game in several answer boxes (each eventually to represent a player) are present to enter text (answers to a given questions) into. Should the majority of the players type in the correct answer to these boxes, a line of text should appear as a reward (the text being a clue relating to the overarching game). Should all players be correct, the game should reward them with 3 lines of text, each drawn in a list formation.
When I run the game normally and simulate 3 players answering correctly, the build draws 11 lines of text and I can't yet tell why.
The bug itself is one thing. However, my true issue is, when trying to debug, I am met with completely different results to when running normally. A breakpoint in one place in the code leads to a single line of text being drawn. But simply moving that break point to another line of code results in no lines of text being drawn at all. At no point do I alter the code to produce these different outcomes.
My question is: are there cases which cause the debugger to behave differently to running normally? If so, how can I get the two to synchronise?
I'm probably missing something staggeringly obvious, but I've got no idea what it would be. I've tried looking for other similar issues in the forum, but found nothing as yet. If something exists, please point me there!
Any help would be great.
Thanks
I'm hoping I'm posting in the right place but it's my first time posting here, so any guidance at all will be appreciated.
I've been coding a quiz game in several answer boxes (each eventually to represent a player) are present to enter text (answers to a given questions) into. Should the majority of the players type in the correct answer to these boxes, a line of text should appear as a reward (the text being a clue relating to the overarching game). Should all players be correct, the game should reward them with 3 lines of text, each drawn in a list formation.
When I run the game normally and simulate 3 players answering correctly, the build draws 11 lines of text and I can't yet tell why.
The bug itself is one thing. However, my true issue is, when trying to debug, I am met with completely different results to when running normally. A breakpoint in one place in the code leads to a single line of text being drawn. But simply moving that break point to another line of code results in no lines of text being drawn at all. At no point do I alter the code to produce these different outcomes.
My question is: are there cases which cause the debugger to behave differently to running normally? If so, how can I get the two to synchronise?
I'm probably missing something staggeringly obvious, but I've got no idea what it would be. I've tried looking for other similar issues in the forum, but found nothing as yet. If something exists, please point me there!
Any help would be great.
Thanks