User Tag List

Results 1 to 5 of 5

Thread: Destroying background Worms-style. Is it possible?

  1. #1
    xvarp
    Guest

    Destroying background Worms-style. Is it possible?

    Hi,

    I'm new here and have squabbled with the good old TGF for a few years and made some crappy games along the way. I've always had this one little problem in games that require terrain destruction.

    So, the objective is to destroy a part of the ground Worms-style.

    I've used the method of creating an active object "Hole" on the spot where the "Bomb" exploded and got destroyed and then pasting the image of the "Hole" on the backdrop and then destroying the "Hole". This works fine, when the colour of the sky is the same as the colour of the "Hole". But when the sky is multicoloured the trick won't obviously work.

    Is it possible to destroy background some other way in TGF2/MMF2, so one could have gradient or even pictured backgrounds and still wreak havoc on the backdrop in front?

    ~xvarp

    EDIT: added information about the problem.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Destroying background Worms-style. Is it possible?

    It's possible to accomplish something like this with the Overlay Redux (I've done it before). Just fill the overlay with your terrain. Then, when you want make a hole, use the "draw ellipse" function to make a circle with color index 0 (you could also do this with an active object). It's possible to have backdrops, actives, and even parallax scrolling behind this.

    Unfortunately, in doing this, you give up MMF's nice "overlapping backdrop" functions. You have to do this yourself by reading colors from the overlay. In your case, you probably just want to know that the color is != 0 (which means it's terrain).


    EDIT: Just in case you don't know, Overlay Redux is an extension for MMF2. You might have to download it --- search around on the website and it should come up.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Destroying background Worms-style. Is it possible?

    I haven't tried, but you might use the layers in MMF2. Make the terrain in one layer, and the background sky in the other. Now when a bomb collides with the terrain layer- it might only remove the terrain... I dunno if it'll work, but it's worth a shot.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator ProPatch Maker

    Join Date
    Jun 2006
    Location
    Norway
    Posts
    528
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Destroying background Worms-style. Is it possible?

    I take that back. Realize now that it won't work

  5. #5
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Destroying background Worms-style. Is it possible?

    like UW said, use Overlay Redux.

Similar Threads

  1. need help with gun aiming (worms style game)
    By Ryan9171 in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 15th February 2012, 04:34 PM
  2. Worms Style Movement
    By ToffeeandPebbles in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 25th February 2011, 05:09 PM
  3. Worms Game help
    By LBP08 in forum Multimedia Fusion 2 - Technical Support
    Replies: 25
    Last Post: 2nd October 2010, 02:44 PM
  4. Faire un worms avec MMF
    By ADS_3000 in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 14th February 2009, 11:01 AM
  5. Another worms example
    By Gabriel in forum File Archive
    Replies: 1
    Last Post: 23rd September 2006, 08:38 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
  •