How do I spawn segments of random width one after the other?

Get help using Construct 2

Post » Tue Apr 26, 2016 12:15 pm

Hi!

It might be simple but I'm a beginner and I need your help for this:

I want to create an emiter outside the layout spawning sliding colored segments one after the other, they should touch each other. Each of the segment will be created from 3 colored tilable bitmap (red, yellow and green, they will be tilable textures) and the emiter should never spawn 2 of the same color consecutively.
The emiter will spawn them during let's say 1 minute at a given speed and then stop emiting.

There are also 2 buttons to insert 2 other type of segments (brown & pink). Those 2 have a definite width.
When a button is pressed the next segment to appear will be one of those special segment. Then the other random segment should follow again.

I'm posting a pic to explain more visually:

https://i.imgsafe.org/dc0d683.png

What is the best way to achieve such a thing?

Thanks!
B
3
G
2
Posts: 6
Reputation: 1,085

Post » Tue Apr 26, 2016 7:46 pm

A little bit like this.

https://
drive.google.com/open?id=0B1SSuCVV8v74dU5LSGpKYmF6S1k
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Tue Apr 26, 2016 8:31 pm

Wow thank you so much!! :D It's so kind of you!
I'm going to check it and learn!

Have a nice day!
B
3
G
2
Posts: 6
Reputation: 1,085


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 33 guests