Hi,
I’m trying to build one of those braingames where the player has to memorize a few circles on a Grid. Let’s say the player has to memorize 4 circles.
So i have a Grid setup with 25 positions, all these positions have an UISprite and a box collider attached to them. I have all these positions in an array which i shuffle:
for(var i = GM.Grid.Length - 1; i > 0; i--)
{
var r = Random.Range(0, i);
var tmp = GM.Grid[i];
GM.Grid[i] = GM.Grid[r];
GM.Grid[r] = tmp;
}
Next I set the circles (in this case level = 4):
for(var i = 0; i < level; i++)
{
GM.setGGridItem(i); //sets a Green Circle on the appropriate position
}
yield WaitForSeconds(0.5);
GM.wipeGrid(); //Empties the grid
Now I want the player to point out on which position the circles where briefly shown. The thing is, with my array shuffled and thus my touch positions are screwed up. For instance item01 which is Grid position 0x0 before shuffling the array is now grid position 3x4.
Can anyone help me out with this one because i can’t seem to figure it out
I’m trying to recreate something like this: