Sprite animations
I want my 15 rapid-fire quantum torpedo launchers Uber-Defiant now! - Get help from modders. Share your work. Discuss modifications.
posted on August 9th, 2013, 6:22 pm
I am trying to slow down the rotating "weapon_star" animation defined in fleetops.spr, which is used by almost all torpedoes. But I do not have the slightest idea how to do so.
What does @anim=tex4x4_1.2 mean? I know that tex4x4 means that there are 16 different textures defined in "weapon_star.tga" that are being played through in the animation. But what does the red part stand for? A time code?
I could need some help here as the Guide does not say anything about this.
What does @anim=tex4x4_1.2 mean? I know that tex4x4 means that there are 16 different textures defined in "weapon_star.tga" that are being played through in the animation. But what does the red part stand for? A time code?
I could need some help here as the Guide does not say anything about this.
posted on August 10th, 2013, 4:48 pm
tex_anim.spr defines it as
# 16 frame texture 'flipbook' animation
@animation tex4x4_1.2
offset 16 1.2 step
# Automatically generate keyframes
@auto=square
@keyframes
The '1.2 step' portion is the one you want. It defines the speed, with higher values taking longer (time in seconds to complete animation, I think). Try changing 'weapon_star' to use a different animation reference to find the speed you want. Existing ones are tex2x2rmd (0.33 step), tex4x4_0.5, tex4x4_1.0, tex4x4_1.1, tex4x4_1.2, tex4x4_1.3, tex4x4_1.4, tex4x4_1.5, tex4x4_1.66, tex4x4_2.0, tex4x4_3.0. Or you could make a custom one in tex_anim.spr if none of those seem right.
# 16 frame texture 'flipbook' animation
@animation tex4x4_1.2
offset 16 1.2 step
# Automatically generate keyframes
@auto=square
@keyframes
The '1.2 step' portion is the one you want. It defines the speed, with higher values taking longer (time in seconds to complete animation, I think). Try changing 'weapon_star' to use a different animation reference to find the speed you want. Existing ones are tex2x2rmd (0.33 step), tex4x4_0.5, tex4x4_1.0, tex4x4_1.1, tex4x4_1.2, tex4x4_1.3, tex4x4_1.4, tex4x4_1.5, tex4x4_1.66, tex4x4_2.0, tex4x4_3.0. Or you could make a custom one in tex_anim.spr if none of those seem right.
posted on August 10th, 2013, 9:28 pm
Yep that did it. Thank you very much! 

Who is online
Users browsing this forum: Google Adsense [Bot] and 3 guests