Hi,
My use case is that the there are two sprites on the screen at some distance, when player touch one sprite and slide on screen without releasing to another sprite, I want to draw the path with some thickness and colour.
Input events, I have taken care of.
All I need is drawing the path.
Ways, I can think of:
Use a small rectangle sprite and using factory keep adding on screen or removing as per path (very resource hungry)
Use GUI node - box to draw and keep changing its position and size.
Using render low level draw functions to draw rectangle and color it (which I don’t know how to achieve and will need some references)
is there any better method or which one from above is better to implement ?
Yes, it is so by design. If you want to scale the sprite by keeping its left end still then you should offset the position of the sprite with respect to the containing game object whose scale you are animation. Move the sprite position so that the left end is at the position of the game object.