Not everyone knows what you are talking about. Be specific with what you want. Also if you don't at least try to do it yourself people are less likely to help you. We are here to help we're not here to do your work for you
What Gale said. No idea what that game is or how the mechanics work. Please explain clearly what you want to accomplish and we can help you out.
Agreed to what was said before about the topic, but since I was also curious about the mechanics of this yesterday, I'll try to help out by describing this. Jetpack Joyride example (not the best example video, but the coins system is quite similar and related to the appearance of obstacles) To put it simply, this is a side scrolling game where you can move vertically to dodge obstacles, collect coins, and get power ups. While the environment moves, coins (and more often traps) show up in pre-defined patterns. These usually show up before/after a series of traps, and the placement of the pattern of coins differs vertically (as in how high up it is). Additionally, the different coin patterns also reflects if/what power-up is in use. So, the patterns of coins depends on the character at least somewhat. I hope I didn't miss anything important and thanks for helping to sate my curiosity, and of course helping out mujee
thank you so for Reply. and sorry i cannot explain it clearly. i want to write a pattern in a Notepad. and read this file through Xml to draw a patteren. here is example thank you
Basically what I would do is do the pattern manually and make them as a prefab. Then via code you can instantiate this prefab.
@ ahaykal tanx for your reply. I already done like your way. but his is very lengthy process. read txt file through Xml and then draw a pattern is much better.
Hi, that's looks like my question. http://forum.unity3d.com/threads/224022-Random-Array-Map I would use arrays. For example: Code (csharp): using System.Collections.Generic; List <int[,]> pickups = new List<int[,]>(); int[,] pickups1 = new int[,] { {1, 1, 1, 1, 1}, {1, 0, 0, 0, 1}, {1, 0, 0, 0, 1}, {1, 1, 1, 1, 1} }; int[,] pickups2 = new int[,] { {1, 0, 1, 0, 1}, {0, 1, 0, 1, 0}, {1, 0, 1, 0, 1}, {0, 1, 0, 1, 0} }; //... pickups.Add(pickups1); pickups.Add(pickups2); // then load the pickup pattern in another array int[,] randomPickup = pickups[Random.RandomRange(0, pickups.Count)]; //... for (int i = 0; i < randomPickup.GetLength(1); i++) { //... }