User Tag List

Results 1 to 8 of 8

Thread: Colliding with Backgrounds

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Colliding with Backgrounds

    In my game, the player will collide with all background objects marked as obstacles. That works fine.

    The problem is that when another background of a different type covers an obstacle, the covered area does not affect the player.

    Any help would be appreciated.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Posts
    1,027
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Colliding with Backgrounds

    Naturally, the covered areas replace the collision type. Try using active objects for your ladders and platforms.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Colliding with Backgrounds

    I have 2 background objects: Walls and Trees. My frame will be covered in both. Trees will sometimes cover up walls. I don't want to use Actives for trees because doing so would destroy my frame rate (which is already a bit of a problem).

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Posts
    1,027
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Colliding with Backgrounds

    Make sure both objects have a collision type of obstacle set.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Colliding with Backgrounds

    My player is not supposed to collide with trees. Only walls, which in some cases are under trees. The walls under the trees seem not to affect the player.

  6. #6
    RayMarble
    Guest

    Re: Colliding with Backgrounds

    I can't check it right now, but if I remember correctly the collision is detected only if both objects are on the same layer, maybe I'm wrong. If not, just put trees on a layer above the walls. Shouldn't affect the framerate too much.

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jul 2006
    Posts
    1,027
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Colliding with Backgrounds

    Upload an example of what you are trying to do.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Colliding with Backgrounds

    Thanks, RayMarble! That worked. And thanks Pkeod for your effort.

Similar Threads

  1. Objhect following mouse, how to make it stop when colliding with wall?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 23rd August 2012, 08:12 PM
  2. How to make player completly stop after getting hurt and colliding with an obstacle
    By path in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 22nd June 2012, 03:42 AM
  3. 2 Dynamic PMO objects colliding?
    By Krim in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 5th June 2011, 07:55 PM
  4. Box2D - Colliding with corners of tiles
    By Tatsu in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 3rd May 2010, 08:13 AM
  5. Detecting collisions without the objects colliding
    By Mantoid in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 18th November 2006, 09:28 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
  •