在GameQuery中有没有反转动画序列的方法?目前,如果我们在中指定帧数,它将假设从左到右。我们可以从右到左开始动画吗?如何从多项选择中选择一项?
发布于 2012-06-07 13:17:09
有一个setAnimation方法可以传递动画,只需传递一个反向动画本身即可。
请参阅此文档。
http://gamequeryjs.com/documentation/api/#setAnimation
设置偏移动画变量simpleHorizontalAnimation = $.gameQuery.Animation({imageURL:"sh.png",类型:$.gameQuery.ANIMATION_HORIZONTAL,numberOfFrame: 4,增量: 32,速率: 300});
然后你就这样叫它
.addSprite("simpleHorizontal",{动画: simpleHorizontalAnimation,位置: 34})
您可以进一步了解https://raw.github.com/onaluf/gameQuery/master/tests/human/Animation/type/test1.html
https://stackoverflow.com/questions/7104570
复制相似问题