Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

SpriteBatch.Draw obsolete

$
0
0

@Sylent wrote:

I want to flip my sprite horizontally while drawing and I can't figure out how to use the correct parameters without either an error or a warning about the method being obsolete.

This is what I assume it would be:
sb.Draw(NumbersGame.Arrow, resolutionRightArrow, Color.White, SpriteEffects.FlipHorizontally);

Except it comes up for errors for the color (cannot convert from color to rectangle) and the SpriteEffects bit (cannot convert from sprite effects to rectangle).

What is the correct way to lay out these arguments?

P.S: When I provide all the default values (says it's obsolete): sb.Draw(NumbersGame.Arrow, resolutionRightArrow, null, null, null, 0f, null, Color.White, SpriteEffects.FlipHorizontally);

Posts: 7

Participants: 5

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles