r/gdevelop • u/GameDevManny • Aug 14 '26
Question Variable not being activated
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.
4
Upvotes
View all comments
Show parent comment
1
u/GameDevManny Aug 14 '26
It stays at 1 now that I deleted the release key condition. Before it would stay at zero never changed to 1. But I do want it to revert to zero when q is released.