User Tag List

Results 1 to 5 of 5

Thread: not able to get collision between 2 active objects

  1. #1
    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)

    not able to get collision between 2 active objects

    Hello,

    I have been attempting to use qualifier groups to handle bullet collision in a scrolling shooter. Even without qualifiers, it seems like I am not able to get any collision detection to work on my bullets and enemies.

    I decided not to use the included "Shoot an Object" command for bullets because I wanted more control. So I used an active object with vector movement on it as my bullet. Any idea what might be happening? This is my first real attempt at making a game after doing a couple tutorials, so I might be misusing some things. ^_^'

    I'm attaching my MMF2 file if anyone can take a look.

    Thanks in advance,

    Mobichan

    MMF2 file here

  2. #2
    No Products Registered

    Join Date
    Jun 2006
    Posts
    259
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: not able to get collision between 2 active objects

    Just from a quick glance, it looks like youre creating all the bats on layer 1, while your Knight guy is on Layer 2, along with the bullets. They cant collide if theyre on different layers.

  3. #3
    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: not able to get collision between 2 active objects

    Yup. It was the layers. Thanks so much for the heads up xerus. Sorry if questions like these seems pretty dumb.

    It seems like layers might just confuse things at this point. Is there a simple way of combining all layers and "flattening" them?

    Thanks again,

    Mobichan

  4. #4
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: not able to get collision between 2 active objects

    You can hit Ctrl+A to select everything in the Frame Editor, then drag all objects over to layer 1 on the Layers Toolbar and then remove the other now empty layers.

    Don't worry about silly questions - they're nice because they're easy to answer

  5. #5
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2006
    Location
    Britain, South Coast
    Posts
    1,030
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: not able to get collision between 2 active objects

    Something you may find useful also with layers:

    Sometimes objects HAVE to be on separate layers. I had an example where I wanted the sun to create a glare on the screen. The sun had to disappear behind backdrops, so it needed a layer of its own (layer 1). But it also needed to detect if it was being blocked by a backdrop, so the glare would disappear (so it needed to do colision detections in Layer 2).

    Simple answer was: Create a separate 'sun' object on Layer 2, and make it invisible. Make it always follow the 'Sun' on Layer 1, and voila!

    So yeah, if you need an object to be on one layer, but it has to test for colisions on other layers, this is the best method I've found. Invisible detectors on the other layers, set to follow the 'master' object. It even works with paralax!


    EDIT: I've not tried this yet, but I also have a feeling you can shift an object from one layer to another at runtime. I dunno how fast it is, but it's worth trying. You could shift it to your detection layer, test for any colisions, then shift it back to its original place again?

Similar Threads

  1. Bouncing Collision Becomes Stuck Against Active Objects
    By Kid_Roleplay in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 20th August 2013, 09:06 PM
  2. Active Collision
    By Danny in forum SWF/Flash Export Module Version 2.0
    Replies: 1
    Last Post: 30th January 2013, 05:51 AM
  3. PMO and active objects collision trouble
    By Hash in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 7th January 2011, 07:31 PM
  4. Active picture collision
    By dascribe in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 26th November 2010, 03:19 PM
  5. Make only the active be a box collision?
    By Aloan in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 29th May 2009, 02:03 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
  •