Pick by evaluate

This forum is currently in read-only mode.
  • Quick question, what does the new pick by evaluate event do, I have a feeling it could help me out with something but I dont really know.

    Does it pick the highest/lowest of the expression entered or something like that?

    thanks

  • Oh you can select for example the object who have bigger private value, or just if its equal to something. It should be good at RTS games since there are a lot of copied objects.

  • 'Pick by evaluate' checks the expression for every object, and picks it if the expression is not zero.

    You can use the OR and AND expression operators to do advanced picking, for example:

    Pick by evaluate (Sprite.X < 500) AND (Sprite.Y < 500 OR Sprite('Flag') = 1)

  • 'Pick by evaluate' checks the expression for every object, and picks it if the expression is not zero.

    You can use the OR and AND expression operators to do advanced picking, for example:

    Pick by evaluate (Sprite.X < 500) AND (Sprite.Y < 500 OR Sprite('Flag') = 1)

    That's a very handy feature.

  • That's a very handy feature.

    I agree. I can think of many uses for it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 'Does it pick the highest/lowest of the expression entered or something like that? '

    That's an interesting idea. You can do that by setting a private variable and picking the highest...but do you think a 'pick highest evaluation' and 'pick lowest evaluation' would be worth programming? Should we add it to the todo list?

  • thanks, that is useful

    pick by highest/lowest expression would be cool to see even if you can already do it a convoluted way, (much like this you could probably do a weird way before) it'd just simpler.

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