Home Game Development c# – MonoGame – right overloads for SpriteBatch.Draw flipping horizontally

c# – MonoGame – right overloads for SpriteBatch.Draw flipping horizontally

0
c# – MonoGame – right overloads for SpriteBatch.Draw flipping horizontally

[ad_1]

I wish to flip my sprite horizontally whereas drawing and I am unable to determine use the proper parameters with out both an error or a warning concerning the technique being out of date.

This is what I assume it will be:

sb.Draw(NumbersGame.Arrow, resolutionRightArrow, Color.White, 
SpriteEffects.FlipHorizontally);

Except it comes up for errors for the colour (can’t convert from shade to rectangle) and the SpriteEffects bit (can’t convert from sprite results to rectangle).

What is the proper method to lay out these arguments?

P.S: When I present all of the default values (says it is out of date):

sb.Draw(NumbersGame.Arrow, resolutionRightArrow, null, null, null, 0f, null, 
Color.White, SpriteEffects.FlipHorizontally);

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here