User Tag List

Results 1 to 9 of 9

Thread: Is an obstacle?

  1. #1
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Apr 2012
    Posts
    377
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is an obstacle?

    Hello!
    I noticed in the tutorial about fastloops, that the writer has made a line that goes:

    X Left("Enemy")-7, Y Bottom("Enemy")+3 is an obstacle

    If I understand this right, you can check a designated position and see if that position is overlapping an obstacle, without moving the object there first?
    I tried using the "is an obstacle" line myself, but it didn't register as valid. Did I understand this expression correct?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Yes, you understood that correctly. You have to make sure that the backdrop you are testing on is set to 'obstacle' in its Runtime property settings. You also need to know where the hotspot of the Active object is located, as the hotspot is the position it tests for.

  3. #3
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Apr 2012
    Posts
    377
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alright, but how do you formulate it?
    I tried Check X of Active
    X("Active") = X("Active")+10 is an obstacle

    But it doesn't work?

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Use collision mask as the condition, you don't need to compare it with anything else.

    * X("Active")+10 is an obstacle
    - Do something

    Of course, you will also need to input the y-position, so it will look something like:

    * X( "Active" )+10, Y( "Active" ) is an obstacle


  5. #5
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Apr 2012
    Posts
    377
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm afraid I don't understand the part " use collision mask as the condition". How do I do that?

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Create a new event / condition by clicking Insert in the event editor.
    Then do as on the picture.

    isObstacle.jpg

  7. #7
    Clicker Fusion 2.5
    Fusion 2.5 (Steam)Fusion 2.5+ DLC (Steam)

    Join Date
    Apr 2012
    Posts
    377
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah, thank you very much! I had no idea this could be done!

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    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)
    Popcorn's Avatar
    Join Date
    Jun 2006
    Location
    Norway, Bergen
    Posts
    2,366
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    You're welcome!

  9. #9
    Clicker Multimedia Fusion 2

    Join Date
    Dec 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank You! I was trying to follow the tutorial as well and I would have never known it was the collision mask until you said so. The tutorial is great but it needs to be rewritten for total noobs like me who still don't quite know the ins and outs of this great program yet!

Similar Threads

  1. not setting obstacle
    By westray in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 12th April 2012, 10:27 AM
  2. Climbing the obstacle?
    By RickyRombo in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 27th May 2009, 09:57 PM
  3. Obstacle
    By Henzo in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 1st May 2008, 08:51 AM
  4. Obstacle ? :(
    By Addede in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 9th May 2007, 01:59 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
  •