From d9bff905b53898e8539e45f2eae49a9a4124c064 Mon Sep 17 00:00:00 2001 From: Simon Holmberg Date: Wed, 31 Oct 2012 23:40:59 +0000 Subject: [PATCH] Proper bullet origin and offset. --- DepthsBelow/DepthsBelow/Shot.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DepthsBelow/DepthsBelow/Shot.cs b/DepthsBelow/DepthsBelow/Shot.cs index 90b1691..4fffd96 100755 --- a/DepthsBelow/DepthsBelow/Shot.cs +++ b/DepthsBelow/DepthsBelow/Shot.cs @@ -52,7 +52,7 @@ namespace DepthsBelow if (Texture == null) LoadContent(); - Transform.World.Origin = new Vector2(16, 16); + //Transform.World.Origin = new Vector2(16, 16); Stat = _soldierStat; @@ -63,6 +63,7 @@ namespace DepthsBelow this.Color = Color.White; var rc = new SpriteRenderer(this) { Texture = Texture, Color = Color.White }; + rc.Offset = new Vector2(16, 16); AddComponent(rc); var cc = new Collision(this, 32, 32);