How do I repeat the same level with random changes?

Get help using Construct 2

Post » Fri Apr 04, 2014 10:58 am

The best example I can give is Flappy Bird. You know how the same thing constantly repeats but the pipes change size etc.? How would you do this in Construct? I'm not planning on creating a Flappy Bird clone or whatever, god knows there's enough of them, I was just wondering if it was possible in Construct 2 (I'm sure it is) and how I would go about it? Thanks everyone!
B
3
Posts: 2
Reputation: 179

Post » Fri Apr 04, 2014 6:34 pm

Did you see the flapping bird template? Start a new project. In the window that opens up type flap in the search field.
B
17
S
4
G
3
Posts: 172
Reputation: 1,933

Post » Fri Apr 04, 2014 8:47 pm

Thank you! I knew there would be something like that! I just didn't know where to look! Many thanks!
B
3
Posts: 2
Reputation: 179

Post » Fri Apr 04, 2014 9:06 pm

There are also other things you can do, for example in one of my games I have randomized background items (Trees, bushes, clouds, etc...) and this system can easily be expanded to enemies or any type of object. The trick is to use Families, or even a loop using the choose(1,2,3,4,5) type statement. For example in my endless flyer, I have 7 different types of hazards. So first I have a variable called hazardType, I set it to hazardType = choose(1,2,3,4,5,6,7) I then have another condition that says if hazardType = 1 > Spawn blahblah, if hazardType = 2 > Spawn otherthing, etc.... you could also use families or functions to simplify this even more....
B
49
S
12
G
10
Posts: 1,833
Reputation: 14,573


Return to How do I....?

Who is online

Users browsing this forum: Mayfly and 8 guests