User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14

Thread: Chain explosion

  1. #1
    No Products Registered

    Join Date
    Apr 2010
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Chain explosion

    Hello everyone,

    I'm new here, can someone please tell me how to get all connected objects to change animation while leaving the unconnected ones alone.

    Example

    I have multiple boxes and would like all connected ones to be destroyed when a bullet hits them. Kind of like a chain explosion.

    Thanks.

  2. #2
    No Products Registered

    Join Date
    Mar 2010
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Chain explosion

    are you talking connected like in a straight line? or connected going all kinds of directions?

  3. #3
    Clicker Multimedia Fusion 2
    Fusion 2.5 (Steam)iOS Export Module (Steam)

    Join Date
    Jun 2007
    Location
    United States
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Chain explosion

    If you have an explosion animation, create that animation at the center of the box when the bullet collides with the box. (Make sure the explosion animation is bigger than the box so it collides with the other boxes) Then make an event:

    If Box_Explosion collides with Box
    >Destroy Box

    So you have two separate objects. A static box, and an explosion. Here's a good example: the box object is 16 pixels by 16 pixels and the explosion object is 32 pixels by 32 pixels. This will make the explosion cover all the boxes surrounding the box the object was created at. (Check the hotspots and action points of the box objects and explosion object)

    In the end you should have three events for this.

    If Bullet collides with Box
    >Create Box_Explosion at position 0,0 relative to Box
    >Destroy Bullet

    If Box_Explosion collides with Box
    >Destroy Box

    If Box_Explosion animation has finished
    >Destroy Box_Explosion

  4. #4
    No Products Registered

    Join Date
    Mar 2010
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Chain explosion

    Ye what he said... lol

  5. #5
    No Products Registered

    Join Date
    Apr 2010
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Chain explosion

    Thank you for the reply Jeod and xXjbroXx

    But there's a problem, it destroys the boxes which are unconnected too.

    For example I have 2 sets of boxes, 3 on the left which are connected and 5 on the right which are connected. When the bullet hits the boxes on the left, the ones on the right are also destroyed, how can I make each set independent.

  6. #6
    Clicker Multimedia Fusion 2
    Fusion 2.5 (Steam)iOS Export Module (Steam)

    Join Date
    Jun 2007
    Location
    United States
    Posts
    73
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Chain explosion

    If you duplicated the boxes that shouldn't happen. Try grouping the boxes with a qualifier.

  7. #7
    No Products Registered

    Join Date
    Mar 2010
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Chain explosion

    yes you could use "good" for connected boxes and "bad" for unconnected ones.

  8. #8
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Chain explosion

    erm... no. That wouldn't work. You can't set individual instances to a qualifier.

  9. #9
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    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)
    UrbanMonk's Avatar
    Join Date
    May 2008
    Location
    Southern U.S.A.
    Posts
    847
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Chain explosion

    You could just make an invisible mask to check for connected boxes.

  10. #10
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: Chain explosion

    Better still you could just set a variable to a number when you create the boxes. Set box type a to 1, box type b to 2, etc. Then just check which Id the box has when you do your overlap check.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Particle explosion
    By Digitalic in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 12th July 2010, 05:50 AM
  2. Explosion effect, yay! :)
    By Nifflas in forum File Archive
    Replies: 2
    Last Post: 20th February 2009, 06:43 AM
  3. Explosion effect
    By MediYama in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 28th April 2008, 06:10 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
  •