johan90joseph's Forum Posts

  • 3 posts
  • Is the page loaded in an iFrame? You can call back C2 functions using c2_callFunction("function_name")

    Check out this demo:

    https://howtoconstructdemos.com/using-javascript-to-display-open-file-dialog-returns-the-file-name-to-a-callback-function-capx/

    I used this way of calling the function, but got error.

  • Hi, I changed the way I wanted to work.

    I removed the browser object, and in turn I used ValerypopoffJS to load js files on the start of the event system.

    Then I used Function to called a method in the loaded javascript files. I have a functioned names "initialize". When I call the function using Function object, I get the following error.

    Construct 2] Function object: called function 'initialize', but no event was triggered. Is the function call spelt incorrectly or no longer used?

    Whow to sort this out?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    I have started with Construct 2. On clicking a sprite, I use the Browser object to execute an a javascript function in an external js file. This function loads an html page. When I press a button in the html page, I want to return back to my game.

    How do I do this?

    I mean how do I return back to the game after closing the html page and continue the game?

    Tagged:

  • 3 posts