Comunication between construct game and c# functio

Get help using Construct 2

Post » Wed Feb 12, 2014 6:42 pm

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
B
1
Posts: 1
Reputation: 127

Post » Wed Feb 12, 2014 7:03 pm

@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.
B
20
S
4
G
1
Posts: 185
Reputation: 2,563

Post » Wed Feb 12, 2014 7:04 pm

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.
B
6
S
2
Posts: 89
Reputation: 682

Post » Wed Feb 12, 2014 7:11 pm

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:

https://www.scirra.com/tutorials/346/online-high-score-table-ajax-php-mysql
B
70
S
10
G
9
Posts: 24
Reputation: 9,343


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 15 guests