Hi, I am looking for a away to draw a straight line by keeping touching the screen and dragging,
I tried to do this but the problem is the line grow from two sides up and down or left and right
You need to set Origin Image Point on the Line sprite to its left end.
Also, instead of the sprite object I recommend using TiledBackground - it doesn't get distorted when you stretch it.
dop2000 thank you very mutch
Develop games in your browser. Powerful, performant & highly capable.
I am having a new issue whenever I run the game the line comes from the top of the screen in the first time only.
You probably have a "default" instance of the Line sprite on your layout.
Create another layout (call it Unused or Assets) and move the Line sprite there.
you are right thanks again