User Tag List

Results 1 to 8 of 8

Thread: Help collision with another object

  1. #1
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,846
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Help collision with another object

    MFA: loopcollision.zip

    When the object that sets a fast loop collides with another object, add 1 to alterable value.

    However, an increase in the value is repeated while the object is overlapping.

    How can I increase the value only when the object collides?

  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Help collision with another object

    Maybe: Only one action when event loops

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,846
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Re: Help collision with another object

    Quote Originally Posted by nivram
    Maybe: Only one action when event loops
    When the object overlapped, the value is added only to one if the condition is added.

    How can I add 1 to alterable value to all objects that overlapped?

  4. #4
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Help collision with another object

    You will have to make two events, one that spreads a value in them, and another that starts a loop to look at each of them. Two important notes! Clear all values with an always event BEFORE the collision events. And the fast loop event MUST be in a separate event from the spread value event.
    Working as fast as I can on Fusion 3

  5. #5
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)
    ASD's Avatar
    Join Date
    Feb 2007
    Location
    Japan
    Posts
    1,846
    Mentioned
    11 Post(s)
    Tagged
    1 Thread(s)

    Re: Help collision with another object

    The value keeps increasing while the object is overlapping though I had a separate value used by spread value and the collision.

    How should I do so that only add 1 value to all the other party objects when the object collides with a fast loop used?

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Help collision with another object

    Add an only one event on loop to the end of the fast loopand collision event.
    Working as fast as I can on Fusion 3

  7. #7
    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: Help collision with another object

    You could set a flag to ON when the collision happens and have a "Is Flag OFF" condition with your collision check.

  8. #8
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Help collision with another object

    Quote Originally Posted by mobichan
    You could set a flag to ON when the collision happens and have a "Is Flag OFF" condition with your collision check.
    That won't work because
    Quote Originally Posted by ASD
    How can I add 1 to alterable value to all objects that overlapped?
    Working as fast as I can on Fusion 3

Similar Threads

  1. Active Object Collision box?
    By mykal in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 8th December 2013, 01:11 PM
  2. How to Delete Right-Most Object Upon Collision?
    By pinacoladaxb in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 3rd August 2012, 03:17 AM
  3. No collision for created object
    By Tiles in forum File Archive
    Replies: 1
    Last Post: 21st December 2010, 10:45 AM
  4. Collision Masks for every object?
    By Alves in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 17th January 2010, 10:53 AM
  5. Collision Object?
    By Clicktastic in forum Extension Development
    Replies: 4
    Last Post: 11th August 2006, 03:33 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
  •