ID:2183660
 
(See the best response by Rotem12.)
How would one go on about taking an icon like a black line and stretch it from location A to location B using the animate function? I am still fairly new to them and the search function takes a while to look for stuff around byond.
Thanks in advance!
Best response
You want to scale the line for the distance required, after doing that however, you'll have to adjust the x for the new width (if scaling width), when scaling it'll keep the line at the center, which is why we'll be adjusting.

After that, rotate it and call animate with ANIMATION_LINEAR_TRANSFORM flag.

I have a library that actually does this if you want to take a look.
Thanks Rotem that's the exactly what I needed.