coreys |
05-04-2010 09:44 AM |
Projectile Gani Script position?
I'm trying to script a smoke trail effect for a projectile that is shot using shoot(). I'm doing this in a gani script for the projectile gani.
Originally I was just using TShowImg's inside the gani script, but those would immediately disappear once the projectile hit, which didn't look pretty. So I handled all the image showing in a WNPC that would fade the images out and handle destroying them, and the gani script would just call a public function in that WNPC.
However, when doing that it would show the images at the projectiles shadow, rather than it's actual position...it wouldn't account for the z-axis and I have yet to find a way to do this. The objects z is always 0, so I can't manually subtract that from the y position. This is made especially strange since when creating the TShowImg's in the gani script and setting the x/y in there would account for the z-axis, but not otherwise.
This is extremely frustrating, as it makes doing this in an acceptable way...impossible.
|