# Moving a line programatically

**URL:** <https://forums.kodeco.com/t/moving-a-line-programatically/26020>\
**Category:** Sprite Kit\
**Created:** [February 8, 2017, 11:28pm UTC](https://forums.kodeco.com/t/moving-a-line-programatically/26020 "2017-02-08T23:28:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![koushanejad74](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/koushanejad74/32/81494_2.png) [@koushanejad74](https://forums.kodeco.com/u/koushanejad74)\
**Post date:** [February 8, 2017, 11:28pm UTC](https://forums.kodeco.com/t/moving-a-line-programatically/26020/1 "2017-02-08T23:28:57Z")

</div>

Hi All,

I’ve drawn a line using SKShapeNode by setting the path property, how can I change the position of the end points of the line programatically, Creating a new path wouldn’t be desirable,

Thanks,

---

<div class="post-metadata">

**Author:** ![kgorlick](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/kgorlick/32/83738_2.png) [@kgorlick](https://forums.kodeco.com/u/kgorlick)\
**Post date:** [May 3, 2017, 9:46pm UTC](https://forums.kodeco.com/t/moving-a-line-programatically/26020/2 "2017-05-03T21:46:50Z")

</div>

You could probably achieve this by rotating and scaling the node.
