How do I pick 2 instances separately after returning them

0 favourites
  • 3 posts
From the Asset Store
Game "Little Dino Adventure Returns" with complete Source-Code (Construct3 / .c3p) + HTML5 Exported.
  • ObjectX.InUse is a boolean variable.

    Event======>+Pick objectX where objectX.InUse = 1 (This, in my case, will return 2 instances)

    Sub-Event==> -pick objectx instance 0 (pick first instance) > do something

    -pick objectx instance 1 (pick second instance)> do something

    I'm trying to get the first and the second instance of the list that I previously got in the first condition where objectx have two instances with their InUse variable = 1, so it will retrieve 2 instances. However, it's not working because i'm getting the first and the second instances of all instances. How can I separately pick these two instances regarding to the first condition?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So you want to pick 2 instances and handle them separately ?

    You can do :

    pick objectX by comparison

    for each objectX

    And you just have to add sub-conditions to separate them like : if UID = 0… then, if UID = 1… then, Or maybe just using an incrementing variable).

  • So you want to pick 2 instances and handle them separately ?

    You can do :

    pick objectX by comparison

    for each objectX

    And you just have to add sub-conditions to separate them like : if UID = 0… then, if UID = 1… then, Or maybe just using an incrementing variable).

    Thanks, I'll try it later.

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