JeffSkyrunner's Forum Posts

  • Thanks for suggestion, Davioware, but that's not what I was searching for :)

    As you said, creating a new istance of a Family, a random object will be created, but you don't know which one.

    About the first solution, that is for sure the most straight one, but also the less "pure" one :) As a matter of fact, if you use that method, each time you add a sprite to your project for any reason (e.g. new release with new sprites, or different sprites depending of user, or whatever) you must add a new condition to the "switch case" and this will slow your algorithm, instead of picking the i-th istance of an array...

    However, if there is no other solution, I will of course pick that one, thank you :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi everybody.

    I've tried searching in forum and in the manual, but I wasn't able to find what I was searching for...

    Is there a way to have an array of sprite? Or, to change the perspective, is there a way to choose which element of a family has to be created?

    My goal is to have an array of "template" and then being able to choose which one create... in pseudo code it will be something like:

    i = Random(0,10)

    SpriteToCreate = ArrayTemplate(i)

    Can you suggest a way or a plugin that can do for me?

    Thanks

  • Entry

  • you can just put the objects in a family and every 5 seconds create a familyobject .. wich would create a random object of that family

    vtrix

    I've tried this way, but it doesn't seem to work correctly: I've just 2 objects and it seems that system creates only the last one... am I doing something wrong?

    I've:

    Button -> OnClicked; System -> Create object Squares on layer 1 at (Random(50, 700), Random(50, 700))

    Edit: sorry, the other object was set to not visible by default ^^;

  • Let me introduce myself: I'm an italian engineer, and I work in IT as senior programmer/project manager; in my (little) spare time I've always worked on videogames since I was 8 (BASIC rules!) just for personal pleasure and programming language-learning purpouse.

    Some days ago I came across Scirra 2 while surfing the web and immediately the idea caught and fascinated me... of course I will never finish one of the dozen of projects I've in mind, but still I believe this is a wonderful opportunities not only for designer with no programming skill, but also for programmer with no time to code!

    Many thanks to Scirra's bros ( ;) ) for their idea...

  • construct2.it/forum%20 is now open!!!

    After many requests from italian users in the Construct2 Italian Facebook Fan Page.

    Hi!

    It's seems to me that it's a little bit abandoned... it's possible to somebody to open a new one or to have rights to write articles?

    Thanks :)