Hi!
I want to create a lightning effect and I've created the sprites.
I have three problems:
-A sprite's size seems to depend on the image size (correct me if I'm wrong) so if I use vec_normalize(sprite.scale_x,vec_dist(pointA,pointB)); I get something that's way too big, cause sprite.scale_x == 1 does not mean its one quant in length.
-Orientation issues...
vec_diff(temp,pointA,pointB);
vec_to_angle(sprite.pan,temp);
won't work, because in 3d, a sprite's x axis isn't along the image's 2d x axis, instead it's perpendicular to the images x and y axis.
-origin of a sprite is its middle, so I need to move it so that the end of the sprite is at either point a or point b.

I don't want to use a model instead.

Does someone have a script that streches a sprite from any given point a to point b? I've searched, but couldn't find anything...
Thanks...


~"I never let school interfere with my education"~
-Mark Twain