Hello, i would like to creat a button like a checkbox in Construct 3, how can i do that ?
i tried this:
create a Global Variable and when I click in this button it change his frame and the Variable and vice versa, but don't work.
aekiro.itch.io/proui
This makes it and a lot of UI things a lot easier.
Develop games in your browser. Powerful, performant & highly capable.
Don't break up the logic. Check for 'On tap' first, then as a subevent check if 'var_hud=1' and use Else to test for the inverse case.
Try using one event with two sub-events instead of two separate events.
Main event: On tap gesture on SB_BT_FPS_Select
Sub-event 1: if Var_HUD = 1 …
Sub-event 2: Else if Var_HUD = 0 …
Without the Else - it won't work properly.
Even shorter:
On Tap on SB_BT_FPS_Select Set Var_HUD to (Var_HUD=0) Checkbox set animation frame to Var_HUD