Delta calculation

edited December 2013 in Support
Hi,

I don't know enough about delta calculation to know what this is from the explanation in the documentation.
http://gamequeryjs.com/documentation/api/#Animation

delta: the width of height (depending on the type) of one frame

The width of height sounds like a typo to me, maybe I'm just that clueless :-)

Comments

  • edited December 2013
    Hi brim,

    Yes indeed it's a typo that I just fixed. It should have read delta: the width or height (depending on the type) of one frame.

    What this means is that delta is a dimension in pixels that represents the distance between two frames in your sprite sheet. Since you can choose with $.gQ.ANIMATION_VERTICAL or $.gQ.ANIMATION_HORIZONTAL if the images are position from left to right or from top to bottom, delta can be a width or an height.

    Hopes it helps you, don't hesitate to ask if it's not clear!
Sign In or Register to comment.