User Tag List

Results 1 to 5 of 5

Thread: Collision between two instances of a same object

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    DavidT's Avatar
    Join Date
    Sep 2011
    Posts
    161
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Collision between two instances of a same object

    Hello,

    I would like to do this condition: Collision between [Active1 with Direction=0] and [Active1 with Direction=16]
    But I don't know how to do it. I only manage to do this: Collision between Active1 and Active2 with both Direction=0

    Is there a way to do what I want and how?

  2. #2
    Clicker Fusion 2.5Android Export ModuleSWF Export Module
    Ziplock's Avatar
    Join Date
    Oct 2013
    Posts
    448
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Man this is a tough one. You could create exterior objects that follow them when they're going one direction and don't move when they're going another.

    i.e., Direction = 1, position pink square to object; Direction = 16, position green square to object; pink square collides with green square, etc.

    What exactly are you trying to do?

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    DavidT's Avatar
    Join Date
    Sep 2011
    Posts
    161
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Thanks Ziplock. I am not doing exactly what you propose but it's quite the same : splitting my object into two different objects, one with the direction 0 ("normal fish") and one with the direction 16 ("zombie fish"). It complicates programming because I have to often create/destroy objects and transfert their values, but it works well.

  4. #4
    Clicker Fusion 2.5Android Export ModuleSWF Export Module
    Ziplock's Avatar
    Join Date
    Oct 2013
    Posts
    448
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Why again are you using directions? With your description in mind, can't you just have 2 different objects that act the same way rather than using directions. When a "normal fish" turns into a "zombie fish," create a zombie fish at the position of the normal fish and destroy the normal fish. Then it's as simple as when a zombie fish collides with a normal fish.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    DavidT's Avatar
    Join Date
    Sep 2011
    Posts
    161
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    I explained bad. I am actually doing the same as what you say

Similar Threads

  1. Collision between different instances of the same object
    By DavidT in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 14th May 2014, 02:20 AM
  2. Having problems with collision detection of same object instances.
    By DPowell in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 14th November 2013, 04:00 AM
  3. Coding Collision detection for Multiple Instances with fastloops
    By alxmrg in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 12th February 2012, 09:33 PM
  4. Object order problem with multiple instances of the same object
    By tom79 in forum Multimedia Fusion 2 - Technical Support
    Replies: 14
    Last Post: 1st November 2011, 06:38 PM
  5. For all instances of object
    By qenio in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 24th January 2011, 10:21 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
  •