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

0 favourites
  • 3 posts
From the Asset Store
Easily generate many levels from a set of pre-built scenes (Construct 3 template)
  • 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!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • A little bit like this.

    https://

    drive.google.com/open?id=0B1SSuCVV8v74dU5LSGpKYmF6S1k

  • Wow thank you so much!! It's so kind of you!

    I'm going to check it and learn!

    Have a nice day!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)