Hi. I used the Gamepad: On Right Shoulder Button Pressed action and it has an green arrow which means it should be triggered once. To make a toggle I added a local variable and added it to the condition. So when the var is 0 and the button is pressed some sprites are shown/animated and the var is set to 1. If you press the button again when the var is 1 the items should be hidden again. But it did not work until I added a short delay (wait 0.5 sec). With the delay it works as expected.
Any ideas why this is happening and not working without the delay? I tried to move the line with "Set GeldHinweisSichtbar to 0" to different locations but it did not affect it. It seems as soon as I press the button the other event which has "GeldHinweisSichtbar=0" is triggered. But I pressed the button only once.
This calls a function once which does this:
And this is to hide it again: