Can gameQueryJS able to use 2d sprite instead of horizontal or vertical sprite ?

edited February 2013 in Development
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 ?

Comments

  • edited February 2013 Accepted Answer
    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.
  • Thanks selim.

    But is it possible to automatically change the offset after certain number of frame reach ?
  • edited February 2013
    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.


Sign In or Register to comment.