Destroy every overlapped duplicates after its creation...

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hello. It is me again ))
    In my game i create some objects clicking mouse button. Click > create object.

    My question is simple .. How to create object, and then immediately check for overlapping with the same objects , and if overlap happened - destroy object.
    I spent lots of my time to do this, but but it was all in vain..

    Looks like CF can not do this in one tick ( if i am correct) . And if i add some "check for overlap action 0.01 second later" condition - all works just fine.

    Anybody can help me ?

  • so we have a new member of our group! XD

    welcome my friend :D

    this is what is known as the dreaded clickteam fusion "overlap bug", & you are correct that you can not do it in 1 tick.

    i posted about this a few years back (when i became a member of the group myself lol) & it seems its been a long & ongoing bug/very poor design choice X)

    heres the thread i made, which contains another bigger ancient thread that goes into detail about it & possible work arounds

    Please login to see this link.!

    warning! the rabbit whole goes deep! XD

  • Tisnart, thanks you for this example. It is worked , but i can see a little lag between click and destroy. Moreover, imagine that we need to do this inside some loop with 10 or 20 objects...
    So inside loop we need to create, check for overlap ( if overlap happened we destroy only the LAST created object).
    I can`t do this. Looks like it is impossible in CT for now

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!