diff --git a/Easy2D/Object/BatchNode.cpp b/Easy2D/Object/BatchNode.cpp index 066dc29e..f810db7e 100644 --- a/Easy2D/Object/BatchNode.cpp +++ b/Easy2D/Object/BatchNode.cpp @@ -132,7 +132,7 @@ void BatchNode::setY(int y) { child->move(0, var); } - Node::setX(y); + Node::setY(y); } void BatchNode::setPos(int x, int y) @@ -166,7 +166,7 @@ void BatchNode::move(int x, int y) { child->move(x, y); } - Node::setPos(x, y); + Node::move(x, y); } void BatchNode::move(CVector v) @@ -176,5 +176,5 @@ void BatchNode::move(CVector v) { child->move(v); } - Node::setPos(v); + Node::move(v); } diff --git a/Easy2D/Object/BatchSprite.cpp b/Easy2D/Object/BatchSprite.cpp index 56ff7891..c35a04b6 100644 --- a/Easy2D/Object/BatchSprite.cpp +++ b/Easy2D/Object/BatchSprite.cpp @@ -202,7 +202,7 @@ void BatchSprite::setY(int y) { s->move(0, var); } - RectNode::setX(y); + RectNode::setY(y); } void BatchSprite::setPos(int x, int y) @@ -236,7 +236,7 @@ void BatchSprite::move(int x, int y) { s->move(x, y); } - RectNode::setPos(x, y); + RectNode::move(x, y); } void BatchSprite::move(CVector v) @@ -246,5 +246,5 @@ void BatchSprite::move(CVector v) { s->move(v); } - RectNode::setPos(v); + RectNode::move(v); } \ No newline at end of file