Patern loading/using

edited February 2013 in Development
I read all examples and saw that every time people draw image as big as they need it.
I need to have street in my game. Nothing special, it could be as long as 5px and then repeated all over the place there I need.
In webdesign you can set background url and then choose repeat, repeat-x, repeat-y, no-repeat.
Can we have something similar in gameQuery in near future?

Comments

  • Accepted Answer
    We already have. But only repeat-x or repeat-y not both at the same time:
    - if you set an animation as HORIZONTAL you can make the sprite bigger vertically than the animation and it will repeat along the y-axis.
    - if you set an animation as VERTICAL you can make it bigger horizontally and it will repeat along the x-axis.
Sign In or Register to comment.