How to delete a selection that is part of a family?

0 favourites
  • 5 posts
From the Asset Store
Selection frame like in RTS games, works both on mobile and desktop devices.
  • So I'm trying to delete selected meme within a family that will be instanced.

    Here is my current setup: gyazo.com/178d3bb41995134387d20965e5175e66

    I tried finding something related to "Destroy By Name" but I can't find an equivalent, so I'm guessing I will have to find a workaround for it, but I am not yet familiar enough with JS or Construct to make it. So here we are lol

    How do I delete a specific selection?

  • Family objects Also have a UID (Templates.UID)

    Suggestion:

    Give that "text" an instance variable: ToDelete (number)

    Below set Text action, add:

    set value ToDelete = Templates.UID

    add a condition to that delete:

    Famlity Templates >> pick by UID (Text.ToDelete)

    Action Templates destroy

    This will leave your object name mechanic intact and add functionality to delete the template based on it's unique ID.

  • Family objects Also have a UID (Templates.UID)

    Suggestion:

    Give that "text" an instance variable: ToDelete (number)

    Below set Text action, add:

    set value ToDelete = Templates.UID

    add a condition to that delete:

    Famlity Templates >> pick by UID (Text.ToDelete)

    Action Templates destroy

    This will leave your object name mechanic intact and add functionality to delete the template based on it's unique ID.

    Ooof, ok took me some time to visualise this since I'm a very visual person, but thanks to it, I understood. Thank you so much and it works like a charm, also, I can use the method for the other tools! You are awesome.

  • Proof of success *Cheers

    i.gyazo.com/fe5e9679bf5b2b650e1ea8ea5d906342.mp4

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Proof of success *Cheers

    https://i.gyazo.com/fe5e9679bf5b2b650e1ea8ea5d906342.mp4

    Very nice !!

    Looking good there AquarianDoll :D

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