Origin Code Enabled

This commit is contained in:
quinnvoker
2018-12-01 19:59:06 -08:00
parent 297e19f2a7
commit 0b12c513c3
+1 -1
View File
@@ -74,7 +74,7 @@ namespace QURO.AnimationLibrary
public void Draw(SpriteBatch spriteBatch, Vector2 position, Color tint) public void Draw(SpriteBatch spriteBatch, Vector2 position, Color tint)
{ {
spriteBatch.Draw(SpriteSheet, position, CurrentFrame.Bounds, tint); spriteBatch.Draw(SpriteSheet, position - CurrentFrame.Origin, CurrentFrame.Bounds, tint);
} }
public void Draw(SpriteBatch spriteBatch, Vector2 position, Vector2 spriteOffset, Color tint) public void Draw(SpriteBatch spriteBatch, Vector2 position, Vector2 spriteOffset, Color tint)