Pourquoi mon sprite dessine-t-il dans le coin supérieur gauche quand ma variable wizardPos le place clairement au milieu de l'écran?Dessiner Spritebatch dans la mauvaise position
//in load content
wizardPos = new Vector2(graphics.PreferredBackBufferWidth /2, 700);
wizardChar = new Characters.Wizard(this, spriteBatch, wizardPos, wizardWalk1);
//in Draw method
this.spriteBatch.Draw(tempWizard, wizardPos, null, Color.White, 0f, wizardPos, 1f, SpriteEffects.None, 0f);
Merci Beno! Travaillé parfaitement. Je n'ai pas compris comment l'origine a fonctionné exactement. Appréciez-le. –