Picking and comparing different objects & instances

  • Is there a simple way in construct to compare across objects and instances?

    Say I have 3 different objects with multiple instances of each. So 10 instances of objA, 10 of objB and 10 of objC

    For each object and their instances i want to pick the one that has the highest instance variable "posY" so check 3 different objects and 30 instances. (this bit is ok)

    Then I want to take the 3 that are picked from the above and compare those to give me the object type and the instance that has the highest instance variable "posY"

    Is there a simple way in construct to compare across objects and instances this way?

  • There are some great tutorials from Kyatrick about picking on YouTube.

    Look for scirravideos.

  • There is a built in expression to pick by highest/lowest instance variable (I assume you have that as you say 'this bit is ok'). Then just add your next expression after the first. Picking is based on filtering instances in each expression, so what you're asking is just what C2 does normally, if I've understood you.

    edit: you'll need to put the 3 object types in a Family and put the instance variable on the Family.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for the tip

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