Computer Science Canada Randomize |
Author: | Mystique [ Fri May 26, 2006 4:48 pm ] | ||
Post subject: | Randomize | ||
Okay, I have tried long and hard at this and have given up and now seek ur help ![]() I want the "moles", which I have drawn on Turing to appear randomly on the screen, but on the same spot. So, there are 5 holes and 5 different moles, and from each of them I want them to appear randomly, and sometimes even two or more at a time ( so basically, i want it just like an actual whack- a-mole game) I have tried the following:
but this obviously is not random. Can someone plz help me? ![]() |
Author: | TylerL [ Fri May 26, 2006 5:01 pm ] | ||
Post subject: | |||
I'd do something like this..
|
Author: | Uber Tankz [ Fri May 26, 2006 5:38 pm ] |
Post subject: | WooT |
im down with that. |
Author: | Mystique [ Fri May 26, 2006 5:41 pm ] |
Post subject: | |
I tried it and i get an error message saying: Illegal picture ID number. |
Author: | HellblazerX [ Fri May 26, 2006 6:05 pm ] |
Post subject: | |
It means Turing did not properly load up the images. Make sure that your images are in the same folder as your code. |
Author: | Uber Tankz [ Fri May 26, 2006 6:06 pm ] |
Post subject: | post all code |
Yo, post all your code so we can see whats going on. |
Author: | Mystique [ Fri May 26, 2006 6:20 pm ] | ||
Post subject: | |||
the moles are in the program itself, in procedures. Here was what i was doing originally:
|