That works on Webkit and FF but NOT on IE
  • Hi Selim, hi all...

    I'm getting straight forward with my game, and now it does not work anymore on IE.
    But it's still working on chrome and firefox...
    So i created a fiddle:

    http://jsfiddle.net/pd5MH/

    Can you help me?

    Feel free to replace the png variables with yours.
    a,d walks right,left and w jumps

    Thanks in advance
  • On which version of IE did you test it ? How exactly isn't it working, do you get any errors ?
  • No errors at all. Essentially, it does nothing in $.playground().registerCallback

    I've also tried to remove the code in $.playground().registerCallback, replacing it with just a simple alert. Then i placed an alert just before the $.playground().registerCallback to ensure previous lines were fine. I got this alert but not the alert in the $.playground().registerCallback.

    Tested in IE9 and 8 and isn't working :( FF + Chrome is ok...
  • Ok, FOUND THE BUG:

    in this portion:

    player1Animation["drop"] = new $.gameQuery.Animation({
    imageURL: p1DropSprite,
    numberOfFrame: 2,
    delta: 140,
    rate: 100,
    type: $.gameQuery.ANIMATION_HORIZONTAL
    });

    imageURL is set as p1DropSprite
    BUT i called the var p1Dropsprite (with a 's' in lowercase)

    This mismatch causes IE to mess up with gamequery

    it stucks on:
    $.gameQuery.resourceManager.waitForResources();

    Chrome + FF does not throw this issue :)

    Just for letting you know :)

    Thank you again ♥
  • Thanks for the update. This sounds like a bug though and I will try to fix it for gQ 0.7.1!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!