2
0
Эх сурвалжийг харах

fixed to ignore parent x/y

ncannasse 9 жил өмнө
parent
commit
d5880b7e51
1 өөрчлөгдсөн 6 нэмэгдсэн , 0 устгасан
  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();