Browser Object issue

Discussion and feedback on Construct 2

Post » Thu Feb 13, 2014 5:32 pm


Im using Browser object to exec a js function, the issue comes when i send aparameter like "myfunction("&Score&")";

in the js file i have:

function myfunction(score)
console.log("the score: "+score);

When i run the game, i can see the log in console but the game continue with rare beahviours like not firing collisions or detecting overlapping objects.

There isn't any error in console, so what can be the problem?

for now i find a workaround that is to use webstorage from C2, store the value i need to share with the js function and then inside the js function use window.localStorage.getItem("mykey")
Posts: 3
Reputation: 181

Return to Construct 2 General

Who is online

Users browsing this forum: hanrod and 6 guests