Hey there, I’m making a little game… first time using flash or any programming, but I’v learned some the last days, atleast I’d like to believe so.
I need a little help getting this puzzle-like game to work… so this is the deal.
I have 60 tiles total. 30 red on top of 30 green. When the red one is clicked it will change to visible=false, and when the green one is clicked it will change the red tile above it to visible=true.
What I do want to know, is how I program a button to check if the 3 correct red tiles are visible=false AND the other 27 red tiles visible=true, so a player just can’t press all of them and still clear.
Let’s say I want tile 2, 7 & 18 to be the ones that should be visible=false.
I thought of making variables, but then I’d need 1 unique one for all 30 red tiles, is that the way to go?
They all have a unique instance name already, btn_1 - btn_30, tried to make an if statement with the 3 tiles I wanted to be false, and the 27 I wanted to be true. And an else statement that resetted all tiles to visible=true if the wrong tiles were pressed. But ofcourse… with no success.
Also having problem keeping the movieclip, that I want to hide until the correct combination is pressed, hidden… it keeps showing if I reload the screen when I test play my game.
The problem with the movie clip is that it’s in a diffrent frame then the actuall button, and I don’t know how to root it, I’v tried several things… but I guess it will be easier when I get the button to work along with the code aswell.
Thanks in Advance
//Marcus