Quote from: Crimson Wizard on Tue 05/08/2025 16:58:51On another hand, the Button's rectangle is not defined by the image. It's defined by Width and Height properties. When you assign an image to the button, the button will resize itself to match the Image. But if you later modify Width or Height, then the button's rectangle will not match its image anymore, and it may look like you are clicking through the sprite.
Understood, and it should not be this the problem, because they are set at 40*40 pixels in the editor, and they get a new sprite during the game that is 40*40 too.
I just send you my game's project by MP. That way you can test it properly and see. I give you instructions in MP to "meet" the bug

Quote from: Crimson Wizard on Tue 05/08/2025 16:58:51The function prototype that you cite looks wrong. You have "MouseButton *button", but it should be "MouseButton button" with no asteriks. Is that a typo in your script, or in your post?
Sorry it was a typo in my post...