PDA

View Full Version : [AS2] help with random sequence memory game


buyung_widhi
02-25-2009, 02:08 AM
hi guys,..
I'm trying to create a random sequence memory game, where user has to watch over a certain sequence appears on the screen before they can input (by pushing buttons) according to the sequence appear before.
I've found simon sayz code and make a modification on it.
It worked flawlessly, but there is one problem with it.
The code creates the sequence in this manner, e.g:

1
1 1 2
1 1 2 3
1 1 2 3 4
1 1 2 3 4 5
etc,..

while the game I'm intended to develop doesn't need that kind of increment logic, they just need to display 5 different element for starter and then the user should follow the sequence displayed on it.
I've attached the code I'm using (flash CS3) with hope that anyone can help me with the code.
any suggestion would be deeply appreciated.

ntou45
02-25-2009, 02:13 AM
unexpected file format o.O

buyung_widhi
02-25-2009, 02:19 AM
well.. the fla supposed to be open with flash cs3.
I'm attaching the flash8 version
thanx in advance for the quick response

buyung_widhi
02-25-2009, 09:14 AM
hi,...
anybody..?..
any suggestion?..

endergrl
02-25-2009, 02:07 PM
ok, so what your saying is each time it gives you 1 more item than the last time, but currently it gives you the same string of items and just adds a new one to the end. But what you want to happen is that each time it gives you a whole new order of items? Looking at your code it looks like aMoveList is the array that hold the answer order, but I can see where you are creating it or adding to it to help fix that code. Basically what I think is happening is that each "level" you have it adding a random number between 1 and 5 to the array, but instead you want to create a new array and add x number or random numbers to it, depending on the level. If you can point me to where this action is occuring I can try to help you straighten it out.