Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
gdevelop5:tutorials:how-to-make-togglable-states-with-variables [2020/06/21 03:27]
pjain_gdevelop [How to make toggle states using Variables]
gdevelop5:tutorials:how-to-make-togglable-states-with-variables [2020/07/25 00:32] (current)
arthuro555 [Make sure the state can be changed only once per frame] fix typo
Line 22: Line 22:
 ==== Make sure the state can be changed only once per frame ==== ==== Make sure the state can be changed only once per frame ====
  
-The current code is problemetic:​ It changes the state to toggled and directly after checks that variable to reswitch it to untoggled. We need to add additional conditions to let the state happen only once per frame:+The current code is problemetic:​ It changes the state to toggled and directly after checks that variable to reswitch it to untoggled. We need to add additional conditions to let the state change ​happen only once per frame:
 {{ :​gdevelop5:​tutorials:​togglevariabletutorial5.png?​nolink |}} {{ :​gdevelop5:​tutorials:​togglevariabletutorial5.png?​nolink |}}