Identify Collision IIDs

0 favourites
  • 9 posts
  • Hi folks

    I have a slight problem identifying both instances of the same object when they collide.

    This approach brings back identical IIDs:

    <img src="http://imageshack.us/photo/my-images/715/collisionl.png" border="0" />

    Hopefully, I've just messed up the logic and there's a way to use pick nearest to identify the second instance.

    Alternatively, the nearest instance is the initial instance, in which case I need to find the second nearest instance.

    Any help would be much appreciated.

    Thanks in advance.

  • Hmm, the image link doesn't seem to work:

    imageshack.us/photo/my-images/715/collisionl.png

  • Here is a demo that has similar situation:

    Evil sprites demo

    On collision trigger they are both picked, so you have to 'browse' through them using pick nth instance.

  • Thanks vee - I think you're single handedly mentoring me!

    Unfortunately, my Steam (personal) version of Construct 2 is 114 and your capx is saved in 118. Hopefully, Steam will update soon....

    I understand the logic though, so will have a crack anyway.

  • Hmm, just found this:

    Beta updates & x64 support

    We initially launched on Steam with r114, the latest stable release. However you can now also opt in to beta updates and get r117 via Steam. Just right-click on Construct 2 in your Steam library, select Properties, and in the Beta tab select the beta option from the dropdown. As always, beta releases give you the latest features sooner, but are more likely to have problems, so use with caution! Also note you cannot open projects in older releases of Construct 2. So if you save in r117 you will not be able to open it in r114 - therefore be sure to keep regular backups in case you want to roll back.

    However, there is only one choice in the dropdown (opt out of betas)

  • Heh, fixed - had to opt in to betas on the free version then it updates both.

    I'll stop replying to myself now....

  • ..he lied...

    Just wanted to say that works perfectly, vee.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Pleasure to help, good to know they got steam stuff working properly too! :)

  • Here is a demo that has similar situation:

    Evil sprites demo

    On collision trigger they are both picked, so you have to 'browse' through them using pick nth instance.

    Hi can you re upload the evil sprites demo please? I need help for infect some sprites :)

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