User Tag List

Results 1 to 4 of 4

Thread: Problems with many objects

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Posts
    1,027
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problems with many objects

    I have a game where bullets follow a shadow. When the shadow's travel % is greater than 50% (to prevent this event from going off when the bullet is launched as at this point the bullet and shadow are at 0,0 of the player and are colliding for a few moments after that), when the bullet is overlapping with the shadow, and then when the bullet and shadow = the same spread value then destroy the bullet and shadow and create a collision effect.

    The problem with this is that if the player shoots many bullets at a time there is a sort of lag where the newest bullets and shadows wait until the oldest bullets and shadows collide... so on screen you can see many bullets and shadows just waiting their turn to be destroyed. I'd like to eliminate this lag.

    here are the events:

    +bullet is overlapping
    +% of bullet is > 50
    +bullet id = shadow id
    =
    -create explosion
    -destroy bullet
    -destroy shadow

    btw:
    I had just ignored this and just made the bullet just start 10 or so above the shadow, and then the %check was not needed - there was no lag, but it looked worse


  2. #2
    Clicker Multimedia Fusion 2 Developer

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

    Re: Problems with many objects

    Classic problem of mmf only using the first object in each condition:

    "+bullet id = shadow id" means select all bullets whose id matches the shadow's id
    "+shadow id = bullet id" means select all shadows whose id matches the bullet's id
    which I think might be more what you want, as the other conditions in the event choose the bullet already.

    Note, don't use compare 2 general values, compare directly to the object's value.

    If the event is going to be true for more than one bullet and shadow at once then you need to loop all the shadows and bullets and compare each one's id against each other, otherwise mmf will try to automatically match them up and could match them the wrong way round and then fail the id=id test.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Posts
    1,027
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problems with many objects

    Thanks,
    I did try loops before (without luck - I don't think I checked both ) but I'll revisit them with this problem.

  4. #4
    No Products Registered

    Join Date
    Oct 2006
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problems with many objects

    I didn't really understand what you want to make.
    But are you using the general events or the behavior of the bullet?, becouse this seems to be better handled by the behavior of the bullet...I think so.

Similar Threads

  1. Problems with objects
    By Nathanial_B in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 20th February 2012, 03:59 AM
  2. Problems with multiple objects sticking together
    By Mantis in forum File Archive
    Replies: 12
    Last Post: 30th January 2007, 05:49 PM
  3. Problems with multiple objects shooting
    By krick in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 1st August 2006, 03:37 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
  •