here is the code:
batcher.draw(birdMid, bird.getX(), bird.getY(), bird.getWidth() / 2.0f, bird.getHeight() / 2.0f, bird.getWidth(), bird.getHeight(), 1, 1, bird.getRotation());
what each parameter in this method presents? Please explain in detail
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It only takes a minute to sign up.Sign up to join this community
On my version (1.6.3) there is only one SpriteBatch method that takes 10 parameters.
/** Draws a rectangle with the bottom left corner at x,y and stretching the region to cover the given width and height. The * rectangle is offset by originX, originY relative to the origin. Scale specifies the scaling factor by which the rectangle * should be scaled around originX, originY. Rotation specifies the angle of counter clockwise rotation of the rectangle around * originX, originY. */ public void draw (TextureRegion region, float x, float y, float originX, float originY, float width, float height, float scaleX, float scaleY, float rotation);
Your IDE most probably supports some button like
Go To Declaration. Next time you should use that. My guess is that you are supplying a texture instead of a TextureRegion but there is not enough code to proof this.