I am following the simple tank shooter tutorial in GDevelop 5 and I tried to use the javascript in GDevelop.
My confusion is that the javascript function runs multiple times repeatedly.I wanted it to be called once and whenever I wanted. How can this be done?