Browse Source

fixed to ignore parent x/y

ncannasse 9 years ago
parent
commit
d5880b7e51
1 changed files with 6 additions and 0 deletions
  1. 6 0
      h2d/Scene3D.hx

+ 6 - 0
h2d/Scene3D.hx

@@ -44,6 +44,12 @@ class ObjectFollower extends Sprite {
 		visible = p.z > 0;
 	}
 
+	override function calcAbsPos() {
+		super.calcAbsPos();
+		absX = x;
+		absY = y;
+	}
+
 	override function syncPos() {
 		followObject();
 		super.syncPos();