User Tag List

Results 1 to 6 of 6

Thread: Delete every object of that type when only one collides with something?

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)iOS Export Module (Steam)
    KookieKooker's Avatar
    Join Date
    Feb 2016
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Delete every object of that type when only one collides with something?

    I have an object that's created 3 times, when one of them collides, I need all 3 to break, but Clickteam keeps scoping the one that collides and I don't know how to scope the other 2.

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCiOS Export ModuleInstall Creator Pro
    Julian82's Avatar
    Join Date
    May 2012
    Location
    outbuddies.com
    Posts
    904
    Mentioned
    43 Post(s)
    Tagged
    0 Thread(s)
    Active A collides with Something
    - set Counter A 1

    Counter A = 1
    - destroy (break?) Active A
    - set Counter A 0

    there are many other ways, of course. You could trigger a fast loop, for example, that destroys all objects of the same type.

    Not sure if I understood correctly what you’re trying to achieve tho

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)iOS Export Module (Steam)
    KookieKooker's Avatar
    Join Date
    Feb 2016
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yea, that's what I tried, I think you understood what I'm trying to achieve, I made a variable that basically does that so I can destroy them all without scoping the specific one that collided, but it still only destroyed that specific one, I don't know why

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleMac Export Module
    dsilvers's Avatar
    Join Date
    Jun 2008
    Location
    Boston, MA
    Posts
    495
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Yeah what @Julian82 said. As long as the object is referenced in the conditional, Fusion will destroy them all. So if it's something like

    On Collision Object A and Object B, Run Loop "Destroy"
    On Loop "Destroy," destroy Object B

    Every object B will get destroyed.

  5. #5
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)iOS Export Module (Steam)
    KookieKooker's Avatar
    Join Date
    Feb 2016
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just tried the loop method and for some reason it still only destroys that one object :/ I don't know why it's doing it

  6. #6
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)iOS Export Module (Steam)
    KookieKooker's Avatar
    Join Date
    Feb 2016
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nvm, fixed it, thanks for help!

Similar Threads

  1. When object collides with player it wont play sound
    By District in forum Fusion 2.5
    Replies: 2
    Last Post: 22nd January 2015, 05:37 AM
  2. Replies: 4
    Last Post: 14th April 2014, 10:47 AM
  3. Stop active when collides to another object in drag and drop mode
    By paobrasil in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 25th June 2012, 07:54 PM
  4. [Request]Delete created backdrops of type
    By LazyCoder in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 16th March 2007, 03:18 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •