User Tag List

Results 1 to 3 of 3

Thread: Collision between duplicates

  1. #1
    No Products Registered

    Join Date
    Jul 2007
    Location
    Iceland
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Collision between duplicates

    Hi,

    Does anyone know how to solve collision between two duplicated (not cloned) objects? Any solution will do.

    I've been trying to solve this somehow, but I'm having trouble making a distinction between the collider and the other object. I have a sneaking suspicion that I have to use a fast loop and some spread value tricks for this one, but whatever I try seems to have the same results. The action that attempts to solve the collision always solves the same for both objects, even if I check between an object type and a qualifier group (of which the object is a member).

    I'd appreciate any help I can get on this topic. It's driving me insane

  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: Collision between duplicates

    Use spread value and then use the Alterable Value of the individual duplicate, or use the fixed value for selecting them.
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    No Products Registered

    Join Date
    Jul 2007
    Location
    Iceland
    Posts
    13
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Collision between duplicates

    Ok, so I should use spread value and a fast loop, fair enough. But can you be a little more specific as to how the collision solving should be handled? This is what I have so far:

    + Always
    - Monster: Spread value 0 in Alterable Value Y

    + Monster is overlapping Group.Enemies
    - Start Loop "CollisionLoop" NObjects("Monster") times

    ''The following event repeats for different X and Y differences, but the event never seems to fire even if two monster objects are overlapping:

    + On loop "CollisionLoop"
    + Alterable Value Y("Monster") = LoopIndex("CollisionLoop")
    + Monster is overlapping Group.Enemies
    + Y position of Monster > Y(Group.Enemies)
    - Monster: Set Y position of Y("Monster")+1

    '' Then I have the following event, which seems to fire whenever two objects are overlapping (eventhough they don't share exactly the same position), making me believe that the monster object is checking it's position against itself instead of checking against the other object:

    + On loop "CollisionLoop"
    + Alterable Value Y("Monster") = LoopIndex("CollisionLoop")
    + Monster is overlapping Group.Enemies
    + Y position of Monster = Y(Group.Enemies) <-- Note the "="
    - Monster: Set Y position of Y("Monster")+1

Similar Threads

  1. Differentiating between duplicates
    By netninja in forum File Archive
    Replies: 3
    Last Post: 5th March 2009, 03:51 AM
  2. Duplicates
    By Angelfox in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 6th February 2009, 12:08 AM
  3. How many duplicates of an object in frame?
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 15th February 2008, 08:41 AM
  4. Duplicates with different paths...
    By james_joyce in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 22nd January 2008, 09:57 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
  •