0

我正在尝试使用精灵批处理来旋转具有如下纹理的矩形:

game.batch.draw(图像, (float)x, (float)y, (float)42.5, (float)33, (float)85, (float)66, (float)1, (float)1, (float )角度度);

但我得到错误:

The method draw(Texture, float, float, float, float, float, float, float, float) in the type SpriteBatch is not applicable for the arguments (Texture, float, float, float, float, float, float, float, float, float)

我想我有正确数量的参数,它们都是浮点数,我错过了什么。

4

1 回答 1

0

您没有正确数量的参数。你有一个浮动太多。这就是我将它放在编辑器中的方式,以通过这么多参数查看问题所在。

The method draw(
Texture, float, float, float, float, float, float, float, float) 
in the type SpriteBatch is not applicable for the arguments (
Texture, float, float, float, float, float, float, float, float, **float**)
于 2014-07-12T11:02:20.890 回答