I'm trying to create a compass that when you tap it it toggles the gyroscope animation on/off.
I create my my global switch "Compass".
On my compass overlap group, I add an animation, I change the"ReactOn" selection to a formula (Not selected ReactOn type formula).
I set my formula to $if(gv(Compass)=1,GYRO,DISABLED)$.
(KLWP states it accepts DISABLED, SCROLL, SCROLL_Y, GYRO, SWITCH, VISIBILITY, UNLOCK, LOOP_FW, LOOP_2W, FORMULA)
This correctly shows "DISABLED" or "GYRO" in the text preview. depending on my global switch position.
But the animation ReactOn option does not change and no animation takes place
I've tested this with other animation types instead of GYRO, for instance LOOP, but the same issue is present so seems like a bug.
I'm having the same issue, except with mine I'm doing the following..
Add animation>ReactOn: BG Scroll (Vertical)>Action: Formula...
I use this formula: $if(gv(lock)=1, SCROLL_Y, DISABLED)$
In the editor the text preview changes appropriately when I change the value of gv(lock), however outside of the editor literally nothing happens.
Same bug with v.3.36 on Android 9.
Can we have a confirmation that dev got this. It's a serious bug. There is no easy workaround.
Unfortunately, due to the up vote system, bugs don't get fixed because they are bugs, they get fixed when they are bugs that effect a lot of users. Not great, but the way it is.
Although 2 years now and still no movement?
I found out the bug exception. It works as expected but not in komponent.
The variable changes as expected for instance from DISABLED to LOOP_2W but the ReactOn keeps being in DISABLED state although LOOP_2W is showed in formula preview. No issue outside the komponent.
Now the dev will be able to reproduce the bug.