Rotation issues

In my pacman clone, i’m trying to incorporate directions and animation now. In my player class, i’m using this to draw the pacman rotated 90 degrees, but when I play it, it’s rotated the direction as well…The map looks the same, but I move as if the map was rotated 90 degrees as well.


batch.draw(playerTexture, (float)playerX, (float)playerY, (float)playerX + (width/2), (float)playerY + (height/2), (float)width, (float)height, (float)1, (float)1, (float)90, 0, 0, width, height, false, false);

batch.draw(…) doesn’t have influence on your player’s controls, that’s pretty much all I can say with just this line. Please post more code, at least the part with the player’s controls or the whole player class.
And just btw, you don’t have to cast 1 with (float), to tell Java something is a float value, you can write [number]f, for example 0.5f (or just .5f). If it’s a non-decimal value, you can also just write 1.

I fixed it. My origin was off. I just added float to all of them. I was getting an error that I did have the correct variable types passed, so I eliminated all of them. Normally, I just use the f.

Oh ok then, I didn’t want to point you out as total newbie, sorry.