Could someone write a very simple plugin which say adds two numbers (passed to the plugin as parameters) and returns the result back the game?
This would make a great tutorial too (there is one for drawing a grid, which is good, but not relevant in this case).
Or is there another way to call a simple JS function without the complexity of plugins?
It's not feasible, or not feasible for you?
Couldn't you just use Ajax to get the numbers?
Develop games in your browser. Powerful, performant & highly capable.
Returning is documented here:
Hello, We are considering using construct 2. I was looking at SDK documentation. I haven't tried making a plugin yet.
I was hoping I could check something with you.
Looking at the link above,
Looking at the demo typer.capx ,
You can only pass strings/float/integer between Plugins and Construct 2.
But since JSON exists, this shouldnt be a problem
Hello Vuuv, Thank you.