| 09-08-2002, 07:22 PM | #1 |
well, i'm makeing a map and i want it so that it randomly chooses a color circle red , yellow , red and the player has to step on the colors red , yellow, red than red , yellow , red , blue etc. than the player has to step on red, yellow, red, blue i want to know if i can make the colors random how will i do this..? |
| 09-08-2002, 08:50 PM | #2 |
Guest | Assign each color an integer, then have an action to set an integer to a random integer between 1 and 4 or whatever you want. Set Nextcolor = Random Integer between 1 and 4 If NextColor equal to 1 then do whatever for Red If NextColor equal to 2 then do whatever for Yellow If NextColor equal to 3 then do whatever for Blue If NextColor equal to 4 then do whatever for Green |
| 09-08-2002, 11:37 PM | #3 |
That's what I'm doing but the problem is the rounds.. For example is I want it so that it will add another color every time. here are the 5 colors red blue yellow teal purple here is what lights up red, blue so the person steps on red and blue than red , blue , red so the person steps on red blue red than red , blue , red , yellow the person steps on those I want it so its always random and if they hit the wrong one they lose i forgot what the game was called but i played it like 6 years ago when i was 9 |
| 09-09-2002, 06:03 AM | #4 |
Guest | There are various names for it, but one of the most popular was called Simon. I'm not sure what the problem here is. I already told you how to make it random. Just use an array to keep the pattern stored in and increase it's index each round. |
| 09-09-2002, 11:53 PM | #5 |
yes thats it Simon! GW! ;) |
