I am trying to create a coin flip game not using anything but one single script (no external scripts, no Databases or anything...or this would be easy...)
basically my game will sometimes get stuck in a loop (alot of the time) and others it will work fine..and the game will have a winner...if the game gets stuck in a loop (what I assume is a loop) it will just die... here is my code....any suggestions?
I actually fixed my own code! (yay me) ...but I also broke it (boo me) ...loops no longer go on for ever...but I player names sometimes dont show and I do not know why...
This isnt all of my code there is a function which does the semi final... but its not important here as i built it when this bug existed...helps!? (sorry for lack of comments)
Question
Original Poster
I am trying to create a coin flip game not using anything but one single script (no external scripts, no Databases or anything...or this would be easy...)
basically my game will sometimes get stuck in a loop (alot of the time) and others it will work fine..and the game will have a winner...if the game gets stuck in a loop (what I assume is a loop) it will just die... here is my code....any suggestions?
I actually fixed my own code! (yay me) ...but I also broke it (boo me) ...loops no longer go on for ever...but I player names sometimes dont show and I do not know why...
new code:
old code:
This isnt all of my code there is a function which does the semi final... but its not important here as i built it when this bug existed...helps!? (sorry for lack of comments)
Link to comment
Share on other sites
4 answers to this question
Recommended Posts