Mipey's Recent Forum Activity

  • Doesn't load for me, I get an error after 19% of preloader.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Not events. Global/local variables.

  • It ain't free if you bought the license. ;)

    Just kidding. License has nothing to do with Construct updates; the program itself is always available, the license only allows you to use its full potential.

    So, in short: you don't need license for updates. They already are available to you - forever and ever.

  • Oh, I mean I pasted the GET from onCreate, the instanceProto.loadFile is called from onCreate. Sorry I wasn't clearer. I'm not that dumb :)

  • That's where I pasted all that code from.

  • Can't be crossdomain issue if the file is in the same folder as project.

  • L? bump. Any ideas? <img src="smileys/smiley3.gif" border="0" align="middle" />

  • The permissions thing is related to reputation. The more you get, the more forums you can post on. Doesn't take much, though, just a few good posts or comments.

  • Okay, I'm stumped. No matter what I do, nothing works.

    I tried these:

    jQuery.ajax({
                type:"GET",
                url:this.file,
                dataType:"xml",
                success:function(xml){alert(xml);}
                }); 
    
    jQuery.get("test.xml",function(xml){alert(xml);});
    
    instanceProto.loadFile = function(file)
        {
            var request = null;
            if (window.XMLHttpRequest) 
            {
                request = new XMLHttpRequest;
            }
            else
            {
                alert("XMLHttpRequest is not supported by your browser.");
            };
            
            if(!(request === null))
            {
                request.open("GET", file, true);
                request.onreadystatechange = function()
                {
                    if (request.readyState == 4 /* complete */) {
                        if (request.status == 200 || request.status == 304) {
                        alert('Transfer complete. XML data updated.');
                        this.data = request.responseText;
                        this.ready = true;
                    }
                    else {
                        alert('An error occurred. Old XML data kept.');
                        this.ready = true;
                    };
                };
                request.send();
                this.ready = false;
                };
            }
            
        }
    

    But nothing works. No data is loaded, hell, AJAX doesn't even complete the task. I don't even get the error popups when AJAX would fail to load a file.

    I've tried all these locally as well as exported to dropbox.

    So how the heck do you load a local (to the index.html) file? Because a lot hinges on this functionality.

  • Making profit with someone else's assets tends to be frowned upon. Does it HAVE to be megaman? Generally you have to get your own assets (which includes the Megaman brand as well, so you'd have to name it differently). You can draw your own graphics or pay someone to do it for you. Or buy them from somewhere.

    That's the price of making games for money, sadly.

  • You can also look at my Spritefont plugin, it's got plenty of draws for both canvas and webgl contexes. Though it only draws rectangles in edittime.

    Well, you can draw another rectangle, except with width of 1.

  • System expressions MouseX and MouseY, I believe.

Mipey's avatar

Mipey

Member since 16 Jan, 2009

None one is following Mipey yet!

Trophy Case

  • 15-Year Club
  • Email Verified

Progress

16/44
How to earn trophies