User Tag List

Results 1 to 5 of 5

Thread: Detecting different kinds of obstacles?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Detecting different kinds of obstacles?

    Is there a way to detect different kinds of obstacles (like ladders?) or a way to set backdrops to "Obstacle type 1" and "Obstacle type 2".

  2. #2
    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: Detecting different kinds of obstacles?

    There isn't... but there is a way to distinguish between different obstacles, and that is to have them on different layers.

    You'll also need detection objects on these layers that are always set to the position of your main detection object - this is because objects don't collide with each other across layers.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Detecting different kinds of obstacles?

    Very cool, thanks.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Jun 2006
    Location
    Melbourne, Australia
    Posts
    765
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Detecting different kinds of obstacles?

    You could also use groups I think ie
    group 1 collides with group 2 as an event.

  5. #5
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2006
    Posts
    271
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Detecting different kinds of obstacles?

    You can detect different kinds of obstacle using the CollisionMask(x,y) expression. It will return 1 if there is an obstacle at the position you specify, and 2 if there's a ladder there.

Similar Threads

  1. What kinds of roadblocks do YOU encounter?
    By Docilemouse in forum Multimedia Fusion 2 - Technical Support
    Replies: 18
    Last Post: 18th March 2009, 12:52 AM
  2. on detecting obstacles (pathfind object) in large
    By integrality in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 22nd February 2007, 05:57 PM
  3. pathfinding - detecting obstacles professionally
    By integrality in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 22nd October 2006, 01:02 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
  •