<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><blockquote type="cite"><div dir="ltr">I have this game, its a mimic of the game Simon, where there are 4 object that randomly blink and play a tone. <br><div>I've decided I want my user to decide what level they will play of this game, so I ask the user for a level, and store that number in a variable. I've tried every loop there is, and for the life of me I cannot get it to work right. </div>
<div>I thought I had it with while (number>0){play 1 of 4 tones, decrement number} but it just keeps going, I've counted up to 20, but I assume an infinite loop.</div><div>When using the count, it plays each tone as many times as the number I entered and is equal to the count. </div>
<div><br></div><div>Any guidance is greatly appreciated.</div></div></blockquote><blockquote type="cite"><div dir="ltr"><div><div><br></div>-- <br><div dir="ltr"><div style="font-family:arial;font-size:small">Terri Logan</div><div style="font-family:arial;font-size:small">System Administrator</div>
<div style="font-family:arial;font-size:small">Mount St. Mary Academy</div><div style="font-family:arial;font-size:small"><a href="mailto:tlogan@msmacademy.org" target="_blank">tlogan@msmacademy.org</a></div></div>
</div></div>
</blockquote></body></html>