User Tag List

Results 1 to 4 of 4

Thread: Creation and destruction of two sprite at the same time

  1. #1
    Clicker Fusion 2.5 Developer

    Join Date
    Nov 2014
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Creation and destruction of two sprite at the same time

    Im creating two different sprites (active) everytime my hero fire a bullet , sprite one follow sprite two , so my game can show a lot of two group sprites being fired at the same time.
    Both sprites are created at the same time on "pressed fire 2" event ,
    and I use a alterable variable to count some time and destroy both sprites.
    But when fusion 2.5 destroy both sprites (individual destroy of the two actives) all the other seconds sprites are destroyed too (but not the sprite one)

    So the event destruction of the "second sprite" of another "one sprite" created at the same time is not destroying the correct one (is destroying all the second sprite)

    Is There some way to group two pair of sprites to make both destroy at the same time ?

    thks in advance.

  2. #2
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform 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)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    there's a bunch of different ways you could achieve this. You could use an alterable value in EACH object (that counts up or down) and destroy the different objects in two different events. Or you can find the fixed value of one of the objects on the object creation (eg. object 1) and set that value to a value in object 2 so they are kind of linked (they now both share a unique value with each other) and then when you test to destroy object 1, if object 2 has the same ID as object 1 it will also be destroyed.

    See attached examples!

    destroy bullets.mfa

  3. #3
    Clicker Fusion 2.5 Developer

    Join Date
    Nov 2014
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks , i checked your examples.

    So I added fixed values to all bullets , but it did not work.

    I attach my example , with CTRL you drop a bubble , when you drop many bubbles , some of it did not dissapear.
    Attached files Attached files

  4. #4
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform 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)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    this is just one of those MMF2.5 logic things, you had to compare the ID of the red thing to the ID of the bubble, not the ID of the bubble to red square in that kind of set up.

    bubble_v02 fixed.mfa

Similar Threads

  1. Random Spawning After Destruction?
    By Bittergamer1886 in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 1st May 2012, 05:06 PM
  2. Time based creation
    By EdibleWare in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 9th February 2011, 07:22 PM
  3. Destruction d'un objet Chaîne
    By ouly in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th August 2009, 03:09 PM
  4. Scorched Earth like terrain destruction
    By Algul in forum File Archive
    Replies: 4
    Last Post: 9th February 2009, 09:19 AM
  5. HelpMe: Destruction de décor
    By Tyrael in forum File Archive
    Replies: 3
    Last Post: 3rd September 2006, 06:09 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
  •