Profile image

Question regarding interactionType variables.

8 topfuel300  2.5 years ago

I am attempting to design a button that opens a bomb bay when the button is pressed, and then closes once I release the button. I have had no success insofar as interactionType with its three variables, so my other option appears to be setting another operation in place to return it too zero. I am using variables only, no action groups.

  • Log in to leave a comment
  • Profile image

    @PlaneFlightX Thank you very much!

    2.5 years ago
  • Profile image
    49.3k PlaneFlightX

    @topfuel300 Just checked, instead of putting floor(A9) in the setter, put 0. I also noticed the rotator didn't work, simply put 1 (or -1) in the "max" section. Another important note is the priority. Set the priority of the variable setter (not the button) to -1, to ensure the button takes priority.

    2.5 years ago
  • Profile image

    @PlaneFlightX https://www.simpleplanes.com/a/J9o8X2/AircraftTest

    2.5 years ago
  • Profile image

    You should also be able to set the interactionType to Toggle, and then ditch the need for a variable entirely (though you'll have to click the button again to turn it off)

    2.5 years ago
  • Profile image
    49.3k PlaneFlightX

    @topfuel300 Maybe send me the file so I can see for myself what is happening.

    +1 2.5 years ago
  • Profile image

    @PlaneFlightX What operation should I use? So far I have A9 set to both inputs for the rotator and button; I have A9 - 1 on the global list with the variable named A9.

    This results in a rotator that automatically rotates at the start of the game, and then moves in reverse once I press the button. Once I release the button it continues the other way.

    2.5 years ago
  • Profile image
    49.3k PlaneFlightX

    Have a button with the interactionType of Continuous, and then have a variable setter (in the global list) setting the variable to 0.

    2.5 years ago