Pick by comparison

0 favourites
  • 2 posts
From the Asset Store
Screen Comparison
$2.40 USD
40% off
See how your Logical Resolution looks on different devices
  • The one very important functionality (at least for me) missing that was in construct classic, is "pick by comparison" where you could pick a sprite by comparing its... whatever, say instance variable.

    For anyone wondering how to achieve that now (not a very good way to do this, but as far as i know, the only way, so Ashley goes the question is there any other, more optimal way, or is there a chance to add this functionality) is to create an event like this:

    + pick all Sprite

    + for each Sprite

    + if Sprite instance variable Sth = 1

    = do something

    cheers!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I would also like to see a "pick by comparison" condition added. For now just use a instance variable.

    So the CC event:

    +Sprite: pick by comparison distance(Sprite.X, Sprite.Y, MouseX, MouseY) Less Than 100

    --- do something

    Is done in C2 like so:

    +Every tick

    --- Sprite: set dist to distance(Sprite.X, Sprite.Y, Mouse.X, Mouse.Y)

    +Sprite: dist < 100

    --- do something

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