How do I get this to work with only x axis?
Develop games in your browser. Powerful, performant & highly capable.
i also tried this but it jumps around when you apply touch to screen. anyway to make this move smoothly?
you mean you don't want it to move on the y axis?
change touch.y to self.y
EDIT: Are you trying to accomplish the same thing with the second one, or something different?
Thank You so much