User Tag List

Results 1 to 4 of 4

Thread: How can I open a door with an ID using a button with an ID?

  1. #1
    Clicker Fusion 2.5 (Steam)
    Fililip's Avatar
    Join Date
    Nov 2015
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How can I open a door with an ID using a button with an ID?

    So, I made an array-based level editor with some advanced object properties.
    One of them is the interaction object ID, which is possible to set only on buttons and doors.
    The IDs do load, and everything is as it should be.
    The problem is, that after setting events: "player overlaps button", "button id==door id", "upon pressing e">open the door, no matter what the door ID is, a random button opens all the existent doors.
    What should I do about it?
    Any help appreciated!

  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,335
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Try to swap button id and door id so that it says "door id = button id".

  3. #3
    Clicker Fusion 2.5 (Steam)
    Fililip's Avatar
    Join Date
    Nov 2015
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, worked! ^^

  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,335
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Awesome!
    I'll explain why it is so.

    * Player overlaps button
    + button id = door id
    - do action

    In the example above, since the button was present in a previous condition in the event, Fusion knows which button to test for. It does however not know which door id to compare it to, so it tests for the first door it finds, which most likely is the wrong one.

    Now look at this:

    * Player overlaps button
    + door id = button id
    - do action

    Here door id is not present in any previous conditions in the event, so Fusion tests all door ids and compare them to the id of the button which is present in the event in the previous condition.

Similar Threads

  1. Replies: 4
    Last Post: 8th March 2016, 08:47 PM
  2. Open/Close Menu with one button?
    By Nerf in forum Fusion 2.5
    Replies: 3
    Last Post: 24th December 2014, 12:38 AM
  3. Door help open close
    By KLiK-iT in forum Fusion 2.5
    Replies: 4
    Last Post: 7th November 2014, 11:31 AM
  4. Replies: 11
    Last Post: 24th April 2014, 09:40 PM
  5. Make Button Open Link In Browser (Flash)
    By flyoffacliff in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 3rd April 2013, 10:21 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
  •