Use 3rd party JS libraries (including JQuery), call Javascript functions, access object properties and methods. Implement game objects, and algorithms in Javasc...
Can you show me the code of the function that you're talking about? The one that returns 0?
Hmm I already changed it, but I actually think I know the issue. What I did was
function loadImage(img){
var image = new image();
image.onload = function() {
return "whatever";
}
image.src = img;
and if I´m not mistaken the "return" on that place will not return the value where I need it to be returned. My b!
Yes, you're right, that's the issue.
If you have a callback function like image.onload and want Construct to know when it happens, you can call a Construct function (Function plugin) right from javascript. Read here: scirra.com/manual/149/function («Javascript integration»)