Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
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.
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.
On Tap on SB_BT_FPS_Select
Set Var_HUD to (Var_HUD=0)
Checkbox set animation frame to Var_HUD