I'm having some SERIOUS problems with my mobile site! Basically, my code works fine on my computer.
Here's the issue on mobile devices:
Within the first 2 seconds of the page loading, everything runs perfectly fine. After 2 seconds, nothing is clickable - the page is essentially frozen. My HTML links do not work, users are unable to scroll, zoom in or out, etc. The game is still running, but nothing is responding.
Here's what I've tried:
1. Searching Scirra forums/Google for over 24 hours.
2. Re-exporting the file from Construct 2: This option works - but after adding any sort of HTML link to the page, same issue. In fact, one time I uploaded the project to my server, copy pasted the text into another file, and the second file did not work on mobile, with the EXACT SAME CODE (referencing the same files.)
3. I felt like it had something to do with reloading the page. Many times, the first time my mobile browser loaded the game, it would work fine. I disabled all caching/web storage - this did not fix the issue.
4. Using incognito modes, clearing site data.
Below, I've provided links to my website, ProgressFestival.com. The only piece of code I've added in Jquery is:
var windowname = window.name;
As you can see, in the desktop version, the game returns the object ID of the object clicked.
In the mobile version, when the site is FIRST LOADED, the same thing will work.
90% of the time, after 2 seconds, the site freezes. I'm stumped. Somebody please put me out of this misery. I feel like it has something to do with the canvas creation - when I disable that one line
my code works. This is further evidence that the problem is most likely a Construct 2 problem. Below, I've attached a picture of the way I used to look before encountering this glitch
<img src="http://i44.tinypic.com/2isfp20.jpg" border="0" />
Now, I've become a shadow of my former self... I've lost all confidence in programming I once had. I tried to take a picture of my face but my camera lens broke due to the dreariness of the shot.
Any help is seriously appreciated. In fact, maybe just a "hey man, you'll get this to work one day and feel much better" comment here or there.