zhxauo's Forum Posts

  • 7 posts
  • I have 3 types of sprites included in one family,

    6 family instances in may layout,

    I want to trigger a event when every single family instance is inside a certain area .

    I`m now meeting a problem to pick all family instances, it can only pick the #1 family instance in the layout by using "pick all"

    what should I do to achieve my goal ?

    any advice is welcomed.

  • theubie

    a BIG THANK YOU to you my friend, after tried your way it finally works. thank you!!

    theubie & labithiotis

    I think both methods "loop each"and "add to array" works to pick the first 4 instance in my case.

    thanks a lot guys !

  • labithiotis

    I think I`m getting there by doing like you said

    <img src="https://dl.dropbox.com/u/133630680/Q2.png" border="0" />

    now the only problem is there is only 1 instance appears, and the array width stays at 1 in log. how can I fix it?

  • theubie

    can I always pick the "first 4" from the same instance pool by using "pick by UID"? and remove picked from the instance pool, untill there is less than 4 left in the instance pool? since UID is unique for every single object in the level, how can I pick the "first 4"?

    thanks

  • labithiotis

    I think the second case is what I want. Could u please explain me more how I can store the UIDs of the instances that I want in an array ? Thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes,I do have more instances than these 4

  • I`m noob to C2,and I met "picking" problems several times.

    Here is my case, I wanted to pick 4 instance at one time and make them visible.

    Here is how I did it by picking IID

    <img src="https://dl.dropbox.com/u/133630680/question.png" border="0" />

    apparently, it doesn`t work the way that I want, how can achieve it?

  • 7 posts