How to call JavaScript functions ?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi everyone, I would like to publish my game on GameSpil, and request the pause call function to get advertisements. how do I integrate the following code into the game?Please login to see this attachment.

  • Entering the code using the function call with the Html object gives me an error as you can seePlease login to see this attachment.

    You have to put the Javascript function in the HTML file and just put the function name here. :) And do not forget to unselect the "Generate HTML file" option in the HTML5 properties of your application, to avoid your HTML file to be overwritten by Fusion.

  • sorry, but I don't know much about it, I started a course at JS, am now busy with something else, so I should call "pauseGame" and "resumeGame" with the Html object. But shouldn't the code insert it in the Javascript file (Runtime)? and then create an html file (using for example Visual Studio) to insert this API here?Please login to see this attachment.

  • [MENTION=19102]janpier[/MENTION] That should be "normal", but with Fusion you need to embed the JavasScript function (the long code) inside the exported index.html . After that these function are called from inside the application using the Html5 Object.

    In the links from above, it shows that you can put the full JavaScript code inside a parameter and call the "eval" function.

    Is a mess to use JavaScript that way, but at least works.

  • at this point I think the best thing would be to make a video tutorial (for which I could also pay) where it is shown how to implement for example the codes of Spilgames and Game Distribution, which are among the largest distributors of Html games, would be a great springboard launch to publish their games also on other sites, so as to have players interested in downloading later also from android and ios and maybe making money with non-exclusive sales or advertising. and I'm not just referring to HTML, it would be good to have many videos tutorial, I think it would be of enormous help to novices and there would be fewer people asking for help on the forums and therefore it would consume less time to give answers, more customers thanks to the documentation

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!