User Tag List

Results 1 to 6 of 6

Thread: Problem with collisions

  1. #1
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2006
    Location
    In a Dark room with only a lamp
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with collisions

    Collisions are happening where they shouldn't...

    Bit of background first.

    I am using an alterable value in one of my objects to control its movement states. the explanations are here:

    Code:
    Movement Value explanation
    
    0 = Stationary and follows player object
    1 = moving horizontally
    2 = moving vertically
    3 = Collided with object and performing test
    4 = no match
    I am also using an alterable value to control the direction of an animation. this is alterable value b (anim dir).

    Puzzle Block uses two movements:

    1. Static - for custom movement
    2. Pinball Movement - to take it off screen using arched gravity

    The problem is as follows.

    Code:
    Puzzle Block (PB) Collides with Level Block(LB)
    Set PB Movement Value to 3
    
    ***********************************
    PB Overlapping LB 
    + anim dir PB = anim dir LB
    + Movement Value = 3
    
    Destroy PB
    Destroy LB
    ***********************************
    
    ***********************************
    PB Overlapping LB
    + anim dir PB <> anim dir LB
    + Movement Value = 3
    
    Change Movement of PB to Movement 2
    Start Movement of PB
    Set Movement Vlaue of PB to 4
    ***********************************
    When the second starred event occurs and PB is moving using the Pinball movement but then overlaps an object with the same anim dir value both of them are destroyed.

    i need it to ignore any collisions after the second movement type is initiated.

    does this make sense. i haven't really commented my code so the mfa probably wouldn't make sense to everyone but if it is needed i can post it.

  2. #2
    Clicker Multimedia Fusion 2
    Greg's Avatar
    Join Date
    Dec 2006
    Location
    Poland
    Posts
    315
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with collisions

    In both of your conditions you have:
    Code:
    + Movement Value = 3
    Where is this movement value stored? I think that might be the problem here, or at least it could give us some more details.

  3. #3
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2006
    Location
    In a Dark room with only a lamp
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with collisions

    Movement Value is alt. value a of PB

  4. #4
    Clicker Multimedia Fusion 2
    Greg's Avatar
    Join Date
    Dec 2006
    Location
    Poland
    Posts
    315
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with collisions

    Maybe try adding "Pick one of the PB" to those two conditions. If it doesn't help, then I think I'd need to see the mfa.

  5. #5
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Oct 2006
    Location
    In a Dark room with only a lamp
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with collisions

    http://sites.google.com/site/lembi2001/Flipull.zip?attredirects=0&d=1

    the mfa is in the attached zip file along with an ini file used to display level data.

  6. #6
    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: Problem with collisions

    You could try adding another condition to your first line of code:

    +PB Movement <> 2

    Or you could turn a PB flag ON when the collision occurs and have a condition that checks if the Flag is OFF in the collision code.

Similar Threads

  1. Problem using 2 chars with collisions and a movable box at the same time
    By Matriax in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 14th January 2013, 08:40 AM
  2. Collisions with 247
    By LB in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 27th April 2008, 01:52 AM
  3. Collisions.
    By Conno in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 22nd November 2006, 06:02 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
  •