Hi everyone,
I have created a platformer game being focus on touch controls and Android (APK export).
I have been testing the game primarly from my laptop with touchscreen and exporting the APK-installing it on (emulated Android-bluestacks) and directly on the phone. In those “touch based” scenarios, the game works as expected.
Recently, I exported to gd.games web to test it from regular laptops and, for my surprise, there are some things that doesn’t work as expected.
I have been already trying different changes without success, but I am not experienced and doesn’t understand what could be happening.
Issue 1:
Volume button: It works with touchscreen but with cursor only works once, to “Mute”, but then doesn’t unmute or change the animation when click again.
This is the code (that works with touchscreen)
Issue 2:
There is another issue related to sound that works well with touchscreen, but wrong with mouse. Basically, there are 3 text objects, 1 is correct and 2 are incorrect. These are numbers randomly generated that checks that there are no duplicates
If you click on the correct one, triggers a “positive sound” and
if you click on one of the others, triggers a “negative sound”.
With touchscreen, it works like that, no issue.
But with the Left mouse button ,
on the correct one it triggers both sound together
on the others, it only triggers the “negative sound”
I think that the issue could be related to the fact that the correct answer replace one of the “fake” ones and Hide the object but I am unable to solve it on the web (on the APK export never experienced any issue)
Thank you so much for your help and ideas to find a solution!