When game exported, clicking wont work

When my game is exported, it will not let me click anything. The over and out feature for mouseclick works though… @grazer said that other things did not work too
image
You can see that when I hold my mouse, the white square goes over the icon, but when I click, nothing happens. Has this happened to anyone else before?

@YonTheController I had this problem with Shroomers TD. I found out that emitting things is unreliable and the click functions only work with spawned objects.
(I also had the problem with a beta game I made called Super Swatter)
Basically the rule of thumb is to always spawn because it’s more reliable and you can send messages to spawned objects.

The thing is that the game DOES work efficiently unless you play the actual exported game,
so I’m not really sure this is the problem.

My problem with Shroomers TD didn’t start until I exported it to Itch

Huh, okay… So the click function only works when it’s for spawned objects?
What if I make the object spawn on a once trigger? Will that work? I just don’t want to do much work for my game.

In my game it only didn’t work for emitted objects. Objects already in the game were clickable.
You could test it and see if it does anything though.
Another glitch it could be is if other things have higher display orders it sometimes wont activate but I don’t know if this is your problem.

One thing I forgot to mention is that on my other games, I don’t have this problem… I tried to duplicate my game but still problem exists. Do you know why higher display orders COULD be a problem?

Wait, I just figured out that when I fullscreen the game, my mouse just moves to a different coordinate in my screen. Does anyone think this has to do with my problem?

So when you use the “mousemove” there is screen and game coordinates. try the game coordinates.
when i full screen it. it usually works.
if it doesnt help. check the full screen settings

forgot to say this but i figured out the messages dont work any they have to be set to “any object”
anyways grazer is figuring out why this is happening to my game

1 Like