This is stressing me out

{"data":{"behavior":{"v":"2","nodes":[{"inputCount":1,"outputCount":3,"name":"DeviceCheck","behaviorType":"logic.logic.DeviceCheck","x":-270,"y":192,"group":"","id":"e31ac2f37893d84b","notes":null,"n_o":null},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-90,"y":128,"group":"","id":"e31b0758e133764b","notes":null,"n_o":null,"startVal":100,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-90,"y":256,"group":"","id":"e31b0ab76533c546","notes":null,"n_o":null,"startVal":0,"tag":null,"roundMode":1},{"inputCount":1,"outputCount":1,"name":"Alpha","behaviorType":"logic.properties.Alpha","x":180,"y":192,"group":"","id":"e31b19adb02b1447","notes":null,"n_o":null},{"inputCount":0,"outputCount":1,"name":"Always","behaviorType":"logic.triggers.Always","x":-450,"y":192,"group":"","id":"e329958e2c60c647","notes":null,"n_o":null}],"links":[{"input_id":"e31ac2f37893d84bi0","output_id":"e329958e2c60c647o0"},{"input_id":"e31b0758e133764bi1","output_id":"e31ac2f37893d84bo1"},{"input_id":"e31b0ab76533c546i1","output_id":"e31ac2f37893d84bo2"},{"input_id":"e31b19adb02b1447i0","output_id":"e31b0758e133764bo0"},{"input_id":"e31b19adb02b1447i0","output_id":"e31b0ab76533c546o0"},{"input_id":"e31b19adb02b1447i0","output_id":"e31b0ab76533c546o0"},{"input_id":"e31b19adb02b1447i0","output_id":"e31b0758e133764bo0"}]}}}

I tried to use this code in flowlab and it didn’t work when I tested it. It’s supposed to make mobile controls Invisible when you play on computer, and visible when on mobile

3 Likes

You should use the output “browser” and not the “desktop”. Desktop is refering to exported apps.
Same thing for mobile, it will output if the app is exported

Device Check Documentation:
https://flowlab.io/behavior_handbook/#mobile-device-device-check

  • Browser Activates if the game is running as HTML5 in a web browser
  • Mobile Activates if the game is running as a native app on an iOS or Android device
  • Desktop Activates if the game is running as a native app on a Windows or Mac computer"
3 Likes