User Tag List

Results 1 to 4 of 4

Thread: PMO collision with background objects

  1. #1
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PMO collision with background objects

    I can't remember who has the source for the PMO just now, but in going back to one of my earlier games, I've found that in the Flash version, the PMO doesn't work correctly with background objects that aren't rectangular - the character collides with the entire bounding box of the object.

    You can see its behaviour on the ramps here:

    http://www.clickteam.info/davidn/games/flashtesting/pmoramps.html

    http://www.clickteam.info/davidn/games/flashtesting/pmoramps.mfa

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: PMO collision with background objects

    Yeah that's definitely not working the same.

  3. #3
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: PMO collision with background objects

    Hi David

    I have been using PMO and didn't see this behaviour so it was a strange one.

    However I found the cause is that the player DOES NOT have fine collision detection enabled. In the MMF runtime this causes a box collision of the player with a fine pixel perfect collision with the background object. In the Flash runtime it looks like if the active object is in box collsion mode then it tests for a box collision on the background object too, which is what we see.

    Putting fine collision detection on the player and it all works.

    I'm sure I read something about this a while back, but I do no recall if it was a bug to be fixed or a limitation of the flash version.

    One thing is for sure, if you have box collision on your active object it will test for box collisions against background objects. I've just tested this with the 8-way movement and the collision detection is the same, so it's not to do with the PMO but the way MMF Flash deals with collisions.

    The solution is to use fine collision on all obects, but would be interested to know if the collision issue is a known bug or limitation and if it is something that can be fixed?
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  4. #4
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: PMO collision with background objects

    Ah...! You know, now that you mention that, I remember a thread about fine detection against actives and backdrops as well. I had actually checked the objects in the game that this example came from and thought that fine detection was turned off on my collider object, but later on I found that what I thought was the collider was in fact an object that just followed the player sprite around, and the player sprite was just the collider as well. I'm still not sure why I might have done that, but it was five years ago so I might just have been slightly stupider at the time.

    Thanks for pointing that out - I didn't put the two things together. I'd already made changes to the game to avoid the problem coming up, but it's good to know for anyone else who sees this!

Similar Threads

  1. Background collision vs. overlap question
    By Drcooper in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 9th August 2010, 10:47 PM
  2. Background Collision
    By RobTheBuilder in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 11th July 2010, 11:03 PM
  3. The background collision-BUG
    By wuxuechen in forum File Archive
    Replies: 5
    Last Post: 22nd January 2007, 03:51 AM
  4. Background collision bug?
    By AdamEngland in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 29th August 2006, 04:07 PM
  5. Problem with Background collision...?
    By TDA in forum Multimedia Fusion 2 - Technical Support
    Replies: 17
    Last Post: 20th July 2006, 02:24 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
  •