Javascript (Construct 3 Plugins)

  • UpvoteUpvote 57 DownvoteDownvote
    This content is deleted
    Extension
    Javascript

    Use 3rd party JS libraries (including JQuery), call Javascript functions, access object properties and methods. Implement game objects, and algorithms in Javasc...

You're viewing a single comment in a conversation. View all the comments
  • 3 Comments

  • Order by
  • 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!