Interface buttons help!

  • #1, by fabian-schurgersFriday, 20. March 2020, 14:08 4 years ago
    Hi there!

    I was fidgeting about with interfaces, and I seem to have a bit of a problem with creating functional interface buttons.

    If I create an interface and create a new button, I can't seem to get the button to do anything.
    I have specified the 'object' and 'interface' area of the button, but whatever I put in the 'Actions' tab, is not executed when the button is clicked.

    The only time I can get a button to function, is if there is only 1 button in the interface, and the image of the button is the background image of the entire interface. Then, suddenly, it works.

    But perhaps I'm doing something awfully wrong?

    Best regards and thanks,

    Fabian


    Forum Fan

    127 Posts


  • #2, by esmeraldaFriday, 20. March 2020, 17:35 4 years ago
    Are the buttons set as action areas?

    Maybe you could provide some screenshots? Makes it easier to find the problem.

    Key Killer

    508 Posts

  • #3, by fabian-schurgersSaturday, 21. March 2020, 07:29 4 years ago
    Will do!

    Here are the screenshots!

    I have set up the button properly, I think? But when in the game, the first button, the backpack, works,  but the second does not.

    Both have the 'When mouse cursor enters object area, change cursor to Use' function.

    But the image of the first button is the general interface image....somehow that matters?

    Anyway, thanks your reply!

    Forum Fan

    127 Posts

  • #4, by afrlmeSaturday, 21. March 2020, 11:31 4 years ago
    I see they are different interfaces, did you specify the interface area for each of them? It's possible that one or multiple interfaces are preventing other things below them from being detected.

    Imperator

    7278 Posts

  • #5, by fabian-schurgersSaturday, 21. March 2020, 11:49 4 years ago
    Thanks for the reply!

    It's a different button of the same interface. I did the 'interface area' and everything, but no matter what, I cannot get the interface button to work!

    Even if I delete the other interfaces, the button does zero, nada, zipski!

    Update: I removed the background image of the interface, and gave the first button an active image. Now, it does nothing too!

    It really has something to do with the background image apparently?

    Forum Fan

    127 Posts

  • #6, by afrlmeSaturday, 21. March 2020, 12:18 4 years ago
    You need to set them both to "action area" type. You should be able to toggle the active/inactive image state in mouse enters/leaves action parts with the "set active/inactive image" action part.

    Quick note: only 1 interface should contain command type buttons & only the buttons that are supposed to be commands, should be set to command type - all other buttons should be set to "action area" or one of the item types (if they are item placeholders or buttons for scrolling the inventory).

    Imperator

    7278 Posts

  • #7, by fabian-schurgersSaturday, 21. March 2020, 13:54 4 years ago
    Thanks, but done that.

    The logic should be fine and the buttons should work, but they don't...

    To summarize: an interface is only able to have 1 button that can be clicked on?
    That is, the button which has the interface background image?

    Or is it a bug in the program?

    Anyway, thanks for your time!

    Best regards,

    Fabian

    Forum Fan

    127 Posts

  • #8, by afrlmeSaturday, 21. March 2020, 15:51 4 years ago
    No, you should be able to add & use as many buttons as you like.

    Imperator

    7278 Posts

  • #9, by esmeraldaSaturday, 21. March 2020, 16:05 4 years ago
    Yes, as many buttons as you like, but only on one interface buttons set as command type. Buttons on other interfaces should be set as action areas. (or inventory slots, ...)
    If you have only one interface with command buttons, it should be fine.

    Is your background of the interface in question big enough to hold both of your buttons? As far as I`m aware there must be a background covering the whole room you use as interface, or the buttons or inventory slots will not work. It can be a transparent background, but it needs to be there.
    Could that be the problem?

    Key Killer

    508 Posts

  • #10, by fabian-schurgersSaturday, 21. March 2020, 16:22 4 years ago
    Yes, as many buttons as you like, but only on one interface buttons set as command type. Buttons on other interfaces should be set as action areas. (or inventory slots, ...)
    If you have only one interface with command buttons, it should be fine.

    Is your background of the interface in question big enough to hold both of your buttons? As far as I`m aware there must be a background covering the whole room you use as interface, or the buttons or inventory slots will not work. It can be a transparent background, but it needs to be there.
    Could that be the problem?
    And...that worked!!

    As soon as I set a background image for the interface, large enough to hold both buttons, they both worked fine!

    Many thanks!!

    Best regards,

    Fabian

    Forum Fan

    127 Posts

  • #11, by magdalene-reniFriday, 21. May 2021, 20:23 3 years ago
    Hello,
    Please forgive me, I am all new to this!
    I am strugling the last couple of hours, troubleshooting this: I watched very carefully the tutorial and I have managed to save and run the game succesfully. Everything runs terrific except the user's interface. I walk upon the door and nothing happens -there are no look, no use symbol no nothing! :-)
    So, I loaded the "minimal configuration" game and I double checked my settings. To my surprise, likewish the user interface weren't working on that game too. Of course, I directed my player on the rock which has been pre - set as an action area.
    Please help! I need to create a game for small children. Is this a bug? Can someone suggest for a solution?
    Warmest wishes,
    xxx Magda

    Newbie

    4 Posts