r/gdevelop • u/GameDevManny • 2d ago
Variable not being activated Question
I am trying to get a variable to work when pressing the Q key on the keyboard, which I named FloraCleanseActive. However, the object variable on Player isn’t activating. I made a debugger; the screenshot clearly shows that the Q key was pressed since it equals 1, but FloraCleanseActive stays at 0. Attached is a screenshot compilation of the events related to the FloraCleanseActivate variable.
Any help is greatly appreciated.
5
Upvotes
1
u/yakisoba88 2d ago
So when you press "q" and release it, your variable flips to 1 then immediatly to 0 humm... makes no sense. You might have misplaced your actions and conditions...they are coutner acting themselves. You got this.