Computer Science Canada looping randint |
Author: | be natural* [ Sat Jun 07, 2003 2:50 pm ] | ||
Post subject: | looping randint | ||
in my program, i tried to shoot the bubbles and each time i shoot a bubble, the colour of it changes. So i put randint in the loop to randomize the colour of the bubble, but what happens is that the colours are changing so fast until i press the shift key and then the colour doesn't change while it's being shoot. how can i make the randomly-chosen colour stay as it is before the shooting? I attached my code below...
|
Author: | Catalyst [ Sat Jun 07, 2003 3:03 pm ] | ||
Post subject: | |||
Since this is a very simple fix... all you need to do is randomize the color after it is shot
|