Need help with a bug

This cospaces has a bug where the the hitboxes don’t do the function I’ve assigned them.
Does anybody know how to fix it?

1 Like

Hi Louie,

The main problem in the code is that you use a variable as a parameter in defining the function. Since functions usually have different types of parameters, such as scene item, camera item… (and I really don’t know what Input_1 should be), I can’t debug it. You can, by properly defining the function.
I would also never put an event like “when clicked…” in a loop, or in a conditional, or in function. It is not necessary.