Chrome cr_createRuntime workarounds

Get help using Construct 2

Post » Tue Aug 06, 2013 1:21 pm

What are common workarounds for this error on Chrome?

[CODE]
// Create new runtime using the c2canvas
              cr_createRuntime("c2canvas");
Uncaught ReferenceError: cr_createRuntime is not defined
          });
          
          // Pause and resume on page becoming visible/invisible
          function onVisibilityChanged() {
              if (document.hidden || document.mozHidden || document.webkitHidden || document.msHidden)
                    cr_setSuspended(true);
Uncaught ReferenceError: cr_setSuspended is not defined
              else
[/CODE]

only happens on Chrome, (Firefox, Safari work fine)California2013-08-06 13:32:15
B
18
S
5
G
4
Posts: 568
Reputation: 5,079

Post » Mon Feb 24, 2014 12:33 am

I'm sure that by now you've probably realized that the issue lies within Jquery. Something about it makes it only be able to run when hosted on a server. Not exactly sure why, but I'm currently programming a work-around for this, mainly so that I can export from HTML5 in Construct 2 and then rewrite some lines of code to compile apps using CocoonJS. If you'd like, you can PM me and I'll tell you what my results are. :)

EDIT: My bad, the cr arrays are called within the runtime script, in which case, it doesn't need Jquery at all. There just needs to be some tampering of functions within the runtime.
B
42
S
13
G
2
Posts: 245
Reputation: 6,167


Return to How do I....?

Who is online

Users browsing this forum: oosyrag, pcprice76 and 9 guests