浏览代码

fixed to ignore parent x/y

ncannasse 9 年之前
父节点
当前提交
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();