User Tag List

Results 1 to 6 of 6

Thread: destroy all objects EXCEPT x?

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Volnaiskra's Avatar
    Join Date
    Jan 2014
    Location
    www.sprykegame.com
    Posts
    2,558
    Mentioned
    133 Post(s)
    Tagged
    0 Thread(s)

    destroy all objects EXCEPT x?

    When the player dies and resets the level, I'd like to destroy ALMOST everything in the frame in order to recreate all the elements and thus properly reset the level. But there are one or two objects that I'd like to keep (ie. not destroy and not have to recreate).

    Is there a way I can destroy everything UNLESS it's "object A", or something like that?

    Thanks in advance

  2. #2
    Clicker Fusion 2.5Fusion 2.5+ DLC
    casleziro's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    679
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    give all objects a qualifier (like Dissolving or something). then, set a flag on for every object you don't want to destroy. now all you have to do is run a loop, and destroy all objects of that qualifier that don't have a flag on:

    -On loop "Destroy"
    -Internal Flag 0 of Group.Dissolving is OFF
    -->Destroy Group.Dissolving

    https://www.dropbox.com/s/ajngrrajjx...%20but%20X.mfa

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,396
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    here is how you do that using qualifiers.



    destroy_all_but_two_objects.mfa

  4. #4
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Volnaiskra's Avatar
    Join Date
    Jan 2014
    Location
    www.sprykegame.com
    Posts
    2,558
    Mentioned
    133 Post(s)
    Tagged
    0 Thread(s)
    Ok, thanks guys. I was hoping there was a way to do it without having to alter the obejcts in any way (ie. add qualifiers), but the way you suggest is straightforward enough.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,396
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    if you don't want to use a qualifier you can just delete the objects normally.
    in Fusion if you don't target an object specifically it applies to all.
    example:

    destroy_all_but_two_objects_no_qualifier.mfa


  6. #6
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Volnaiskra's Avatar
    Join Date
    Jan 2014
    Location
    www.sprykegame.com
    Posts
    2,558
    Mentioned
    133 Post(s)
    Tagged
    0 Thread(s)
    True. But then I'd have to add a "destroy" command to every single type of object, and I'd have to remember to do it to any new types of object I created. I think the qualifier method is probably the best one. All I have to do is remember to add a qualifier to every new item I make, which shouldn't be hard.

Similar Threads

  1. [BUG] Objects outside the frame don't destroy
    By paobrasil in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 22nd October 2012, 08:13 PM
  2. created objects create objects and destroy both.
    By wizlore in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 25th September 2012, 08:37 PM
  3. Game Over Destroy Objects
    By jbrown2177 in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 7th August 2012, 06:05 PM
  4. destroy objects with alterables?
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 19th January 2007, 08:20 PM

Posting Permissions

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