Error
TypeError: gdjs.Untitled_32sceneCode.GDButtonObjects1[i].getBehavior(…).IsClicked is not a function
at Object.gdjs.Untitled_32sceneCode.eventsList0 (file:///var/folders/t4/1k7j30t13y17yxtp4780s85w0000gn/T/GDTMP-501/preview/code0.js:41:81)
at u.gdjs.Untitled_32sceneCode.func [as _eventsFunction] (file:///var/folders/t4/1k7j30t13y17yxtp4780s85w0000gn/T/GDTMP-501/preview/code0.js:66:27)
at u.renderAndStep (file:///var/folders/t4/1k7j30t13y17yxtp4780s85w0000gn/T/GDTMP-501/preview/runtimescene.js:1:5640)
at d.step (file:///var/folders/t4/1k7j30t13y17yxtp4780s85w0000gn/T/GDTMP-501/preview/scenestack.js:1:796)
at file:///var/folders/t4/1k7j30t13y17yxtp4780s85w0000gn/T/GDTMP-501/preview/runtimegame.js:1:12429
at i (file:///var/folders/t4/1k7j30t13y17yxtp4780s85w0000gn/T/GDTMP-501/preview/pixi-renderers/runtimegame-pixi-renderer.js:1:11738)
Hey!
In GDevelop today, there is a bug with the ButtonStates extension. Every time I load up the game, this happens:
If you’re using JavaScript, verify your code. Otherwise, this might be an issue with GDevelop - consider reporting a bug. Full error is: gdjs.Untitled_32sceneCode.GDButtonObjects1[i].getBehavior(…).IsClicked is not a function
I have the button states behaviour on, and I’m testing this in a game with very few events. Here are screenshots:
Thanks, and hopefully this can get fixed soon!
– Snowy
Edit: I solved it by deleting and reinstalling the extension in my project. Not sure if this is a bug anymore or something on my end, as it was working yesterday and then just broke today without me making any changes.

