How to edit c2runtime.js on Mac without using Construct/SDK

0 favourites
  • 5 posts
From the Asset Store
With this template you will learn how to use the GooglePlay Games native plugin
  • Ashley

    Hi, I currently can't run Construct 2 because I have a Mac, and I'm trying to develop a game on an HTML5 site. I purchased a car racing game from which came with the .capx file as well as the HTML5 export, and I would like to add some functionality into the c2runtime.js file right when the game loads. (Preferably as soon as the load screen disappears, before the game starts -- it has a "tap to start" function).

    Any ideas on how I can pinpoint the game init inside the gigantic c2runtime.js file? I've read on here and throughout some google searches that the runtime file is purposely made to be hard to read, but at this point, I'll take any help I can get!

    (Also, if I'm completely crazy, and I CAN use the javascript SDK without the actual Construct 2 application, please let me know. I'm new to this, haha.)


  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Given that you don't have a pc, and probably don't have a C2 license which you need if you plan on making any profit from a game made or edited with the editor, I would contact the author, and see if they can do it for you.

  • Modifying c2runtime.js isn't really feasible. When the project is exported the JavaScript of the runtime and plugins are minified so they aren't readable, but on top of that the events or logic of the capx is probably in data.js and that is only readable by the JavaScript portion. In short it's not worth the effort to reverse engineer the export to be able to make changes.

    The most I've seen someone do is change a setting after an export.

  • This is deliberately designed to be practically impossible to prevent games being reverse-engineered. So I wouldn't even try.

  • I'm here to see how can I make a javascript popup when the game finishes to show the score.

    To make the app be able to read the score from my popup.

    Any suggestion how to do that ?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)