- Home /
Question by
Dilusion88 · Jan 20, 2012 at 11:06 PM ·
2djavascriptenemyx-axis
2d Enemy JavaScript
I need a script that simply moves a sprite left to right over a user defined distance along the X-axis, I'm struggling with how to do this. I can make it move one way but am not sure how to make it return to origional spot and walk the opposite way.
Thanks for any help in advance
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613063224im_/https://answers.unity.com/themes/thub/images/avi.jpg)