User Tag List

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

Thread: Overlapping Problem

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Overlapping Problem

    I've got a bunch of bullets being fired. Each is using a custom movement (made with events). I loop through each one, then I loop through them again to move them one pixel at a time, but 20 pixels per frame. To detect a hit, during the second loop, I check for collisions on the zombies. The conditions look like:
    - On loop "BulletSteps"
    - Fixed value of "Bullet" equal to value("BulletBeingMoved")
    - Bullet is overlapping a zombie

    That event never fires. I tried deleting the overlapping one, and it fires, but with it, it never fires. (I also tried switching the two objects around, that didn't work).

    What's going on?

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export ModuleXNA Export ModuleInstall Creator Pro

    Join Date
    Jul 2006
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Overlapping Problem

    I also had a problem like this. At the start of the frame try to create bullets on all zombies at the same time. So all zombies overlap a bullet and vice versa. It's strange but it worked for me.

  3. #3
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Overlapping Problem

    Uhhh, why would I do that? I want the player to have to shoot them, not have it shoot them at the beginning of the frame.

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Overlapping Problem

    Does changing the event to zombie overlaps bullet work?

  5. #5
    No Products Registered

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

    Re: Overlapping Problem

    I don't remember for sure, but i think events like collision or overlapping are only tested before the main loop, not inside. Maybe i'm wrong but i think that if you set an object over another one, the "overlapping" condition can only be met at the next loop. You should maybe test this.

  6. #6
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Overlapping Problem

    Yea, I've tried switching them.

    After the loop eh? Would it do the same thing if I use the looping feature in an extension?

    I'm really starting to hate the built in looping in MMF2...

  7. #7
    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: Overlapping Problem

    I've never had a problem with detecting collisions within fastloops... I'm not entirely sure what Corentin means.

    I think the old "Post up an example" idea might be best.

  8. #8
    No Products Registered

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

    Re: Overlapping Problem

    I can't test it right now but here's a test :
    Start of frame :
    -Start loop "test" 1 time

    On loop "test"
    -Set Object1 at 0,0 from Object2

    On loop "test"
    +Object1 overlaps Object2
    -play sample "beep"

    I think it won't beep because the overlapping isn't tested during the condition but before he main loop (when they aren't overlapping).

    Sorry, I know it's quite a bad explanation, my poor English is giving me troubles.

  9. #9
    Clicker Multimedia Fusion 2

    Join Date
    Jul 2006
    Location
    Near Nantes (Brittany)
    Posts
    241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Overlapping Problem

    Yes, Corentin, I had this problem with MMF1.5
    If I remember well, you can't create an object and check for collision in the same loop.

  10. #10
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Overlapping Problem

    I'm not creating objects in the same loop. I'll try to get an example file made, though, with my luck, the example file will work just fine...

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Problem with overlapping actives
    By Caesar in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 27th February 2012, 05:58 PM
  2. Not Overlapping Problem
    By Eliyahu in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 26th November 2011, 06:00 PM
  3. Dress up game "overlapping" problem
    By L13n in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 28th January 2011, 08:51 AM
  4. Overlapping Problem
    By variant in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 22nd December 2009, 02:33 AM
  5. Overlapping in loops problem example
    By LazyCoder in forum File Archive
    Replies: 0
    Last Post: 17th February 2007, 10:01 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
  •