Can anyone help me on this ? Normally the sprite use in developing game using gameQueryJS is either Vertical or Horizontal. Is it possible for gameQueryJS to use 2D sprite ?
I'm not sure I understand what you mean... If what you want is to create a sprite where the successive image that compose the animation are not lined-up (horizontally or vertically) this is not possible.
How ever you can target an serie of images that don't start a the upper-left corner by using the offsetx and offsety option in the Animation constructor.
Maybe I'm wrong, but I think the easiest way to change a property at a desired frame is to setup a setTimeout or setInterval function up, within the callback function of the item that has a setAminiation associated to it, inside change the offset.
Comments
How ever you can target an serie of images that don't start a the upper-left corner by using the offsetx and offsety option in the Animation constructor.
But is it possible to automatically change the offset after certain number of frame reach ?