is it possible to watch the code inside construct

0 favourites
  • 4 posts
From the Asset Store
Casino? money? who knows? but the target is the same!
  • Hello,

    I really like Construct 2!

    One thing I can't seem to do is to see the code beeing made.

    Is there anything I have missed, it would be nice to see the code and to be able to write some own code.

    Maybe there is some kind of plug-in that could do that for me?

    Does anyone know?

    Thank You

    Regards

    Viking Jonsson

  • You can't see the code (well, you can try to read the javascript output but good luck with that)

    Because the philosophy of Construct 2 is to not have to write down code, the events are enough. It has always been like that If I don't make mistake, and I assume will always be.

    You can try the browser action "execute javascript" if you realy know what you are doing

  • This is a common misconception. Construct 2 doesn't generate code. It generates data representing the events, then interprets that.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Like Ashley said, C2 doesn't generate code. Events will call the code, but its already written and included in runtime.

    What you may want to look at is the code of the different plugins and behaviors. They are in the folder "Exporter/HTML5" of Construct 2 and are included in each project you use them in. The runtime.js will be the file that runs during game, and you can look at how every function is implemented in the plugins. The system object and all its functions/expressions/actions/conditions is also present in the exporter.

    Once you have looked at it, just understand that C2runtime will every tick evaluate available events, trigger the ones that meet their conditions, and redraw if needed.

    If you want, you can also write your own code in plugins/behaviors. Look at the javascript SDK in that case, and the plugin forum.

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