0 Favourites

Comunication between construct game and c# functio

  • Hello,

    When I export a construct game in the windows 8 environment I'm interested in creating a comunication between a construct game and a function that is located in a class in another project of the same solution.

    How can I call the c# function to execute and retrieve its results to show them in the game layout? I've tried to modify the code but for now I'm clueless.

    I'm thinking the AJAX plugin can serve me this way because have the send and receive requests... anyone have tried doing this? If not with AJAX which other tools or plugin I can use?

    Thank you very much

  • massimo, I think you might have to create your own plugin and learn more on the Windows 8 side of things. Eventually, I would like to be able to do this too, but I haven't gotten that far yet.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • I'm not sure that you can do this.

    How could Construct2 possibly communicate via code with C#? There's no programming language in Construct2 (only Javascript if you're developing extentions to the main logic).

    What code have you tried to modify? Your post isn't very clear. If you explain a little more what you need then someone (better than I) is more likely to help you.

  • It my be helpful to go through this tutorial. I did and was able to get the server to send the PHP file content to my C2 project. However, I have not worked out the solution for C2 push to the server yet. The server is a Moodle LMS (Learning Management System) which I do not fully control and for security reason will not allow me to just push content to it. But if you control the server you maybe able to get it to work bidirectional. Not sure if this is the complete solution but it is a good start.

    The link to the Online High Score Table (AJAX, PHP, MySQL)tutorial by ArcadEd is:

    scirra.com/tutorials/346/online-high-score-table-ajax-php-mysql

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic Locked topic
0 Favourites
Construct 3 any news?
889 125,604
uzumiapps's avatar
uzumiapps
Unread sticky
763 305,658
asikanddestroy's avatar
asikanddestroy
Unread hot topic
353 32,088
yojona's avatar
yojona