ARRAYS & LOOPS FOR DUMMIES...

This forum is currently in read-only mode.
  • , ah you'll need to download the free Construct Classic to open them (version R2 is in the General Discussion forum I believe). It's not too different in event styling though, so you might be able to port them over!

    Hmm, pixel perfick a sub-event will only trigger if the main event does, and any objects picked will be carried on (eg: in a main event if you say "Object1 value hit = true" then it will only select all of the Object1 objects with a hit value in the first place).

    One way to avoid picking any objects in the main event is by doing a System "Compare". Can you explain a little more about what you want to be done and I'll try making a cap file?

    And no problem, happy to help <img src="smileys/smiley1.gif" border="0" align="middle" />

  • I want the randomly picked object (from the array pool we dealt with before),to be checked for global variable trues,I am assuming a loop would do this,but it would have to carry on checking if it does,or does not find a true comparison.

    I just can't seem to work out how this is done....

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hmm, still not quite sure what you're trying to do here, but it sounds like you'll want to use your conditions to select all objects that meat the true values, and then use the condition "pick object at random" to select one from that pool of objects.

    Is that close to what you'd like to do?

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